:root {
  --dark: #1C1024;
  --cream: #21142E;
  --paper: #0E1328;
  --ink-soft: #2A1A34;
  --deep: #15101C;
  --white: #FFFFFF;

  --orange: #EF8054;
  --pink: #D94D9D;
  --violet: #8F60A8;
  --turquoise: #5CC8DC;
  --yellow: #DBE57F;

  --text-main: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.76);
  --border-soft: rgba(255, 255, 255, 0.14);
  --shadow-soft: rgba(0, 0, 0, 0.34);
  --font-sans: "Poppins", Arial, Helvetica, sans-serif;
}

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

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

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

@font-face {
  font-family: "Neue Metana Next Free Personal";
  src:
    local("Neue Metana Next Free Personal"),
    local("NeueMetanaNextFreePersonal-Sm"),
    url("fonts/NeueMetanaNext-SemiBold.otf") format("opentype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--paper);
  cursor: default;
  overflow-x: hidden;
}

a,
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
.top-banner,
.course-image-card,
.course-small-card,
.course-small-more,
.teacher-card-link,
.teachers-link,
.home-contact-button {
  cursor: pointer;
}

/* TOP BANNER */

.top-banner {
  position: relative;
  min-height: 124px;
  padding: 24px 80px;
  background:
    radial-gradient(circle at 18% 50%, rgba(219, 229, 127, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(92, 200, 220, 0.18), transparent 30%),
    linear-gradient(90deg, #4A1D72 0%, #7A2C86 48%, #3A1E6B 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  text-align: center;
  text-decoration: none;
  border-bottom: 4px solid rgba(219, 229, 127, 0.78);
  box-shadow:
    inset 0 -14px 30px rgba(0, 0, 0, 0.24),
    0 14px 42px rgba(74, 29, 114, 0.34);
  overflow: hidden;
  cursor: default;
}

.top-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 22%, rgba(255, 255, 255, 0.18), transparent 48%);
  transform: translateX(-62%);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.top-banner:hover::before {
  transform: translateX(62%);
}

.top-banner strong,
.top-banner span,
.top-banner em {
  position: relative;
  z-index: 1;
  line-height: 1.15;
}

.top-banner-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.top-banner strong {
  font-family: "Metana", "NeueMetanaNext", "JuniorDisplay", var(--font-sans);
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 0.9;
  text-transform: uppercase;
}

.top-banner span {
  max-width: 410px;
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 18px;
  font-weight: 900;
}

.top-banner span b {
  width: fit-content;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(219, 229, 127, 0.54);
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 1.8px;
  line-height: 1;
  text-transform: uppercase;
}

.top-banner span small {
  color: rgba(255, 255, 255, 0.90);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.top-banner em {
  min-height: 46px;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  box-shadow:
    0 14px 30px rgba(28, 16, 36, 0.30),
    0 0 26px rgba(219, 229, 127, 0.30);
}

.top-banner:hover {
  background:
    radial-gradient(circle at 18% 50%, rgba(219, 229, 127, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(92, 200, 220, 0.22), transparent 30%),
    linear-gradient(90deg, #5A2188 0%, #8B3195 48%, #46237D 100%);
}

.top-banner:hover em {
  background: var(--pink);
}

/* HEADER */

.site-header {
  height: 92px;
  padding: 0 80px;
  background: rgba(14, 19, 40, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

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

.logo img {
  width: auto;
  height: 50px;
  display: block;
  object-fit: contain;
}

.menu {
  display: flex;
  gap: 18px;
}

.menu a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.menu a:first-child {
  color: var(--orange);
}

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

/* HERO */

.hero {
  min-height: calc(112vh - 92px);
  background-image: url("images/hero.jpg");
  background-color: var(--paper);
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.center-card {
  width: min(608px, calc(100% - 48px));
  min-height: 248px;
  padding: 36px 44px 28px;
  background:
    radial-gradient(circle at var(--water-x, 50%) var(--water-y, 50%), rgba(92, 200, 220, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(21, 16, 28, 0.98), rgba(14, 19, 40, 0.96));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  opacity: var(--hero-card-opacity, 1);
  border: 2px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.46),
    0 0 42px rgba(92, 200, 220, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    opacity 0.18s ease-out;
}

.center-card::after {
  content: "";
  position: absolute;
  inset: -42%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.center-card::after {
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.28), transparent 48%);
  transform: translateX(-30%) rotate(8deg);
}

.center-card:hover {
  border-color: rgba(219, 229, 127, 0.78);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.52),
    0 0 70px rgba(92, 200, 220, 0.30),
    inset 0 0 36px rgba(92, 200, 220, 0.16);
}

.center-card:hover::after {
  opacity: 1;
}

.hero-logo {
  width: min(100%, 416px);
  height: auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.36));
  transition: filter 0.35s ease;
}

.center-card:hover .hero-logo {
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 18px rgba(92, 200, 220, 0.22));
}

.center-card .arrow {
  display: none !important;
}

/* STACK SCROLL DINAMICO */

.scroll-stack {
  position: relative;
  background: var(--paper);
  isolation: isolate;
}

/* DISSOLVENZA SEZIONI */

.fade-section {
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease;
}

.fade-section.is-visible {
  opacity: 1;
  filter: blur(0);
}

.scroll-stack > .fade-section {
  opacity: 1;
  filter: none;
}

/* SEZIONE COS'È CINEARTE */

.about-cinearte {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 98vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(217, 77, 157, 0.24), transparent 36%),
    radial-gradient(circle at 82% 28%, rgba(92, 200, 220, 0.20), transparent 34%),
    radial-gradient(circle at 52% 92%, rgba(219, 229, 127, 0.08), transparent 32%),
    linear-gradient(135deg, #1A1230 0%, #15204A 52%, #281A38 100%);
  margin-top: -12vh;
  padding: 125px 64px 220px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.about-cinearte.fade-section {
  opacity: 1;
  filter: none;
}

.about-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 3;
}

.about-label,
.section-label {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.about-inner h2,
.courses-intro h2 {
  font-family: "JuniorDisplay", var(--font-sans);
  max-width: 860px;
  margin: 0 auto 28px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
  color: var(--white);
}

.courses-intro h2 {
  font-family: "NeueMetanaNext", "JuniorDisplay", var(--font-sans) !important;
  width: 100%;
  max-width: none;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 600 !important;
  font-synthesis: none;
  line-height: 0.92;
  text-align: center;
}

.courses-intro h2 span {
  display: block;
  font-family: "NeueMetanaNext", "JuniorDisplay", var(--font-sans) !important;
  font-weight: 600 !important;
  font-synthesis: none;
  white-space: nowrap;
}

.courses-offer-summary {
  max-width: 860px;
  margin: 30px auto 0;
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.28;
  font-weight: 600;
  text-align: center;
  text-align-last: center;
}

.courses-offer-summary .offer-summary-link,
.courses-offer-summary em {
  display: block;
  width: 100%;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.courses-offer-summary .offer-summary-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.18s ease, font-weight 0.18s ease;
}

.courses-offer-summary .offer-summary-link:hover,
.courses-offer-summary .offer-summary-link:focus-visible {
  color: var(--white);
  font-weight: 800;
  animation: offerLinkVibrate 0.18s linear infinite;
}

.courses-offer-summary .offer-summary-link:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 5px;
}

.courses-offer-summary em {
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 0;
  border: 0;
  color: var(--white);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#junior-academy,
#anno-accademico,
#workshop {
  scroll-margin-top: 112px;
}

@keyframes offerLinkVibrate {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-1.5px) rotate(-0.2deg);
  }

  50% {
    transform: translateX(1.5px) rotate(0.2deg);
  }

  75% {
    transform: translateX(-1px) rotate(-0.1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .courses-offer-summary .offer-summary-link:hover,
  .courses-offer-summary .offer-summary-link:focus-visible {
    animation: none;
  }
}

.about-inner .hero-mask-title {
  width: min(1180px, 100%);
  max-width: none;
  margin-bottom: 34px;
  padding: 0 0.08em;
  font-size: clamp(58px, 9.6vw, 136px);
  line-height: 0.84;
  letter-spacing: 0;
  color: transparent;
  text-transform: uppercase;
  -webkit-text-stroke: clamp(1.2px, 0.18vw, 2.8px) rgba(255, 255, 255, 0.88);
  text-stroke: clamp(1.2px, 0.18vw, 2.8px) rgba(255, 255, 255, 0.88);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
    url("images/hero.jpg");
  background-size: 170% auto;
  background-position:
    calc(50% + var(--hero-mask-x, 0px)) calc(50% + var(--hero-mask-y, 0px));
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  filter: saturate(1.12) contrast(1.03);
  opacity: 0.92;
  animation: heroTextImageDrift 12s linear infinite alternate;
  will-change: background-position, filter;
}

@keyframes heroTextImageDrift {
  0% {
    background-position:
      calc(18% + var(--hero-mask-x, 0px)) calc(45% + var(--hero-mask-y, 0px));
  }

  100% {
    background-position:
      calc(82% + var(--hero-mask-x, 0px)) calc(55% + var(--hero-mask-y, 0px));
  }
}

/* TESTI INTRO */

.about-text-wrap {
  max-width: 980px;
  margin: 0 auto;
  display: block;
}

.about-text,
.courses-description {
  margin: 0 auto;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.about-text {
  max-width: 980px;
  font-size: clamp(20px, 1.7vw, 25px);
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  text-align: justify;
  text-align-last: left;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.about-text-final {
  margin-top: 18px;
}

.about-text strong {
  color: var(--yellow);
  font-weight: 900;
}

.word-recompose.is-ready {
  opacity: 1;
}

.word-recompose .word-piece {
  display: inline-block;
  opacity: 0;
  transform:
    translate3d(var(--from-x), var(--from-y), 0)
    rotate(var(--from-rotate));
  filter: blur(8px);
  transition:
    opacity 0.48s ease,
    filter 0.62s ease,
    transform 0.86s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--word-index) * 0.045s);
  will-change: opacity, filter, transform;
}

.word-recompose .word-piece.word-emphasis {
  color: var(--yellow);
  font-weight: 900;
}

.about-cinearte.is-visible .word-recompose .word-piece {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
  filter: blur(0);
}

/* SPEGNE DEFINITIVAMENTE LE PILL COLORATE */

.word-sphere,
.about-sphere,
.word-sphere span,
.about-sphere span {
  display: none !important;
}

/* LAYER POST-IT MANIFESTO */

.manifesto-postit {
  position: relative;
  z-index: 6;
  min-height: auto;
  margin-top: -8vh;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.manifesto-postit-image {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  filter: drop-shadow(0 -22px 70px rgba(0, 0, 0, 0.22));
}

.manifesto-tape {
  position: absolute;
  z-index: 8;
  bottom: clamp(-58px, -4vw, -32px);
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.manifesto-tape-left {
  left: clamp(28px, 7vw, 118px);
  width: clamp(180px, 24vw, 390px);
  transform: rotate(-5deg);
}

.manifesto-tape-right {
  right: clamp(30px, 8vw, 130px);
  width: clamp(120px, 15vw, 250px);
  transform: rotate(6deg);
}

/* SEZIONE IDENTITARIA CINEARTE */

.cinearte-identity {
  position: relative;
  z-index: 4;
  padding: clamp(56px, 6vw, 84px) 28px;
  background:
    linear-gradient(rgba(48, 41, 77, 0.88), rgba(48, 41, 77, 0.88)),
    url("images/retino definizione.png") center / cover no-repeat,
    #30294d;
  color: var(--white);
  overflow: hidden;
}

.cinearte-identity::before,
.cinearte-identity::after {
  content: none;
}

.cinearte-identity-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cinearte-identity-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cinearte-definition-grid {
  display: grid;
  grid-template-columns: minmax(0, 430px) 1px minmax(0, 430px);
  grid-template-areas:
    "cine-mark cine-rule cine-copy"
    "arte-copy arte-rule arte-mark";
  column-gap: clamp(22px, 3vw, 42px);
  row-gap: clamp(46px, 6vw, 82px);
  justify-content: center;
  align-items: stretch;
}

.cinearte-definition-mark {
  width: 100%;
}

.cinearte-definition-mark-cine {
  grid-area: cine-mark;
  align-self: center;
}

.cinearte-definition-mark-arte {
  grid-area: arte-mark;
  align-self: center;
}

.cinearte-definition-mark img {
  display: block;
  width: min(100%, 430px);
  height: auto;
}

.cinearte-definition-mark-arte img {
  margin-left: auto;
}

.cinearte-definition-rule {
  width: 1px;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.82);
  align-self: stretch;
}

.cinearte-definition-rule-cine {
  grid-area: cine-rule;
}

.cinearte-definition-rule-arte {
  grid-area: arte-rule;
}

.cinearte-identity-block {
  width: 100%;
  max-width: 430px;
}

.cinearte-identity-block-cine {
  grid-area: cine-copy;
  align-self: start;
}

.cinearte-identity-block-arte {
  grid-area: arte-copy;
  justify-self: end;
  align-self: start;
  text-align: right;
}

.cinearte-origin {
  margin: 0 0 18px;
  text-align: left;
  text-align-last: left;
}

.cinearte-origin strong {
  display: block;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(23px, 2.2vw, 34px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cinearte-origin span {
  display: block;
  color: var(--white);
  margin-top: 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 900;
  line-height: 1.15;
}

.cinearte-identity-block > p:not(.cinearte-origin) {
  margin: 0;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  line-height: 1.28;
  text-align: left;
  text-align-last: left;
}

.cinearte-identity-block-arte .cinearte-origin span {
  max-width: 330px;
  margin-left: auto;
}

.cinearte-identity-block-arte .cinearte-origin,
.cinearte-identity-block-arte > p:not(.cinearte-origin) {
  text-align: right;
  text-align-last: right;
}

.cinearte-identity-block em {
  color: var(--white);
  font-style: italic;
}

/* SEZIONE OFFERTA FORMATIVA */

.courses-clean {
  position: relative;
  z-index: 4;
  min-height: auto;
  background:
    radial-gradient(circle at 8% 8%, rgba(239, 128, 84, 0.16), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(143, 96, 168, 0.26), transparent 34%),
    linear-gradient(155deg, #0E1328 0%, #171033 48%, #090D1E 100%);
  padding: 120px 80px 100px;
  color: var(--white);
  box-shadow: 0 -40px 90px rgba(0, 0, 0, 0.30);
  margin-top: -1px;
  overflow: hidden;
}

.courses-doodle {
  position: absolute;
  inset: -16% -8% -12%;
  z-index: 1;
  opacity: 0.16;
  pointer-events: none;
}

.courses-doodle img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: rotate(178deg) scale(1.04);
}

.courses-intro {
  max-width: 1320px;
  margin: 0 auto 72px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.courses-intro > p:first-child {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.courses-description {
  margin-top: 28px;
}

/* CARD IMMAGINE CORSI */

.courses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  position: relative;
  z-index: 2;
}

.course-image-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: #120D24;
  min-height: 560px;
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
}

.course-image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.course-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.course-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(430px, calc(100% - 56px));
  min-height: 178px;
  padding: 30px 34px 34px;
  background:
    linear-gradient(135deg, rgba(28, 16, 36, 0.96), rgba(217, 77, 157, 0.88));
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  border: 3px solid rgba(255, 255, 255, 0.88);
  outline: 7px solid rgba(92, 200, 220, 0.75);
  outline-offset: -16px;
  box-shadow:
    0 26px 70px rgba(28, 16, 36, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) translateZ(0);
  transition:
    transform 0.45s ease,
    background 0.45s ease,
    outline-color 0.45s ease;
}

.course-cta span {
  color: var(--yellow);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 5px;
}

.course-cta strong {
  font-family: "JuniorDisplay", var(--font-sans);
  max-width: 320px;
  font-size: clamp(32px, 4.1vw, 46px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.course-image-card:hover .course-cta {
  transform: translate(-50%, -50%) scale(1.035);
  outline-color: rgba(219, 229, 127, 0.88);
  background:
    linear-gradient(135deg, rgba(28, 16, 36, 0.98), rgba(92, 200, 220, 0.88));
}

.course-cta-dark {
  background:
    linear-gradient(135deg, rgba(21, 16, 28, 0.98), rgba(42, 26, 52, 0.94));
  outline-color: rgba(239, 128, 84, 0.78);
}

.course-cta-dark span {
  color: var(--orange);
}

.course-image-card:hover .course-cta-dark {
  outline-color: rgba(217, 77, 157, 0.88);
  background:
    linear-gradient(135deg, rgba(21, 16, 28, 0.98), rgba(143, 96, 168, 0.92));
}

.course-copy {
  flex: 1;
  padding: 28px 30px 34px;
  background: rgba(14, 19, 40, 0.94);
  border-top: 5px solid var(--turquoise);
  display: flex;
  flex-direction: column;
}

.course-image-card:nth-child(2) .course-copy {
  border-top-color: var(--orange);
}

.course-copy p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-soft);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.course-copy p:last-child {
  margin-bottom: 0;
}

.course-more-link {
  width: fit-content;
  min-height: 54px;
  margin-top: auto;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--yellow), var(--turquoise));
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  outline: 4px solid rgba(217, 77, 157, 0.72);
  outline-offset: -10px;
  box-shadow:
    0 0 18px rgba(219, 229, 127, 0.46),
    0 18px 42px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  line-height: 1;
  text-transform: uppercase;
  transition:
    transform 0.32s ease,
    box-shadow 0.32s ease,
    outline-color 0.32s ease,
    background 0.32s ease;
}

.course-more-link::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.course-more-link::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.42) 50%, transparent 66%);
  opacity: 0.58;
  transform: translateX(-24%) rotate(-8deg);
  transition:
    opacity 0.32s ease,
    transform 0.56s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.course-image-card:nth-child(2) .course-more-link {
  background:
    linear-gradient(135deg, var(--orange), var(--pink));
  color: var(--white);
  outline-color: rgba(92, 200, 220, 0.72);
  box-shadow:
    0 0 18px rgba(239, 128, 84, 0.46),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.course-image-card:hover .course-more-link {
  transform: translateY(-3px) scale(1.035);
  outline-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.34),
    0 0 28px rgba(219, 229, 127, 0.42),
    0 22px 54px rgba(0, 0, 0, 0.30);
}

.course-image-card:hover .course-more-link::before {
  opacity: 0.95;
  transform: translateX(18%) rotate(8deg);
}

.course-image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 90px rgba(28, 16, 36, 0.18);
  filter: saturate(1.08);
}

.course-image-card:hover img {
  transform: scale(1.045);
}

/* CARD CORSI, WORKSHOP E LABORATORI */

.additional-courses-grid {
  max-width: 1520px;
  margin: 54px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.course-small-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.course-small-card {
  width: 100%;
  display: block;
  position: relative;
  aspect-ratio: 1 / 1.28;
  min-height: 0;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 22px 70px rgba(28, 16, 36, 0.12);
  isolation: isolate;
  transform: translateY(0) rotate(0);
  transition:
    transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.46s ease;
}

.course-small-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transform: scale(1.025);
  transition:
    transform 0.75s ease,
    opacity 0.75s ease,
    filter 0.75s ease;
}

.course-small-card::before {
  content: none;
  position: absolute;
  inset: -18%;
  z-index: 1;
  background:
    radial-gradient(circle at 22% 18%, var(--course-glow-a, rgba(219, 229, 127, 0.34)), transparent 28%),
    radial-gradient(circle at 78% 20%, var(--course-glow-b, rgba(92, 200, 220, 0.26)), transparent 30%),
    linear-gradient(115deg, transparent 26%, rgba(255, 255, 255, 0.22) 42%, transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.54;
  transform: translate3d(-7%, -4%, 0) rotate(-8deg);
  transition:
    opacity 0.45s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.course-small-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9, 13, 30, 0.00), rgba(9, 13, 30, 0.34));
  opacity: 1;
  transition:
    background 0.45s ease,
    opacity 0.45s ease;
  pointer-events: none;
}

.course-small-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(78%, 330px);
  height: 268px;
  padding: 26px 24px 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(28, 16, 36, 0.76);
  border: 2px solid rgba(255, 255, 255, 0.74);
  outline: 4px solid rgba(92, 200, 220, 0.62);
  outline-offset: -10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition:
    transform 0.45s ease,
    background 0.45s ease,
    outline-color 0.45s ease;
}

.course-small-copy span {
  display: block;
  margin-bottom: 13px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
}

.course-small-copy h3 {
  font-family: "JuniorDisplay", var(--font-sans);
  margin: 0;
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.course-small-more {
  width: fit-content;
  min-height: 42px;
  padding: 0 16px;
  background: var(--yellow);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.28s ease,
    background 0.28s ease;
}

.course-small-more:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.additional-courses-grid .course-small-more {
  width: min(100%, 236px);
  min-height: 58px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  outline: 4px solid var(--tag-outline, rgba(143, 216, 255, 0.72));
  outline-offset: -9px;
  background:
    radial-gradient(circle at 18% 16%, var(--tag-glow-a, rgba(143, 216, 255, 0.30)), transparent 36%),
    linear-gradient(135deg, var(--tag-bg-a, rgba(30, 28, 60, 0.96)), var(--tag-bg-b, rgba(91, 128, 172, 0.72))) !important;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 1.25px;
  box-shadow:
    0 0 18px var(--tag-shadow, rgba(143, 216, 255, 0.26)),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.additional-courses-grid .course-small-item:nth-child(1) .course-small-more {
  --tag-bg-a: rgba(30, 28, 60, 0.96);
  --tag-bg-b: rgba(91, 128, 172, 0.72);
  --tag-outline: rgba(143, 216, 255, 0.72);
  --tag-glow-a: rgba(143, 216, 255, 0.30);
  --tag-shadow: rgba(143, 216, 255, 0.26);
}

.additional-courses-grid .course-small-item:nth-child(2) .course-small-more {
  --tag-bg-a: rgba(40, 24, 58, 0.96);
  --tag-bg-b: rgba(156, 93, 155, 0.72);
  --tag-outline: rgba(196, 153, 220, 0.72);
  --tag-glow-a: rgba(196, 153, 220, 0.30);
  --tag-shadow: rgba(196, 153, 220, 0.26);
}

.additional-courses-grid .course-small-item:nth-child(3) .course-small-more {
  --tag-bg-a: rgba(20, 32, 62, 0.96);
  --tag-bg-b: rgba(91, 151, 178, 0.70);
  --tag-outline: rgba(116, 217, 230, 0.68);
  --tag-glow-a: rgba(116, 217, 230, 0.28);
  --tag-shadow: rgba(116, 217, 230, 0.24);
}

.additional-courses-grid .course-small-more:hover {
  outline-color: rgba(255, 255, 255, 0.86);
  color: var(--white);
}

.course-small-copy p {
  margin: 14px 0 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.38;
}

.course-small-card:hover img {
  opacity: 1;
  transform: scale(1.095);
  filter: none;
}

.course-small-card:hover,
.course-small-card:focus-visible {
  transform: translateY(-10px) rotate(var(--course-hover-rotate, -1deg));
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.30),
    0 0 44px var(--course-shadow, rgba(219, 229, 127, 0.20));
}

.course-small-card:hover::before,
.course-small-card:focus-visible::before {
  opacity: 0.86;
  transform: translate3d(5%, 3%, 0) rotate(7deg);
}

.course-small-card:hover::after,
.course-small-card:focus-visible::after {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(9, 13, 30, 0.00), rgba(9, 13, 30, 0.28));
}

.course-small-card:hover .course-small-copy,
.course-small-card:focus-visible .course-small-copy {
  transform: translate(-50%, -50%) scale(1.045) rotate(var(--course-copy-rotate, 0.8deg));
  background: rgba(28, 16, 36, 0.88);
  outline-color: var(--course-outline, rgba(219, 229, 127, 0.76));
}

@keyframes coursePhotoDrift {
  0%,
  100% {
    object-position: 48% 50%;
  }

  45% {
    object-position: 54% 46%;
  }

  72% {
    object-position: 44% 55%;
  }
}

@keyframes courseLightSweep {
  0%,
  100% {
    transform: translate3d(-8%, -5%, 0) rotate(-8deg);
  }

  50% {
    transform: translate3d(6%, 4%, 0) rotate(6deg);
  }
}

.courses-clean.is-visible .course-small-card img {
  animation: coursePhotoDrift 9s ease-in-out infinite;
}

.courses-clean.is-visible .course-small-card::before {
  animation: courseLightSweep 7s ease-in-out infinite;
}

.courses-clean.is-visible .course-small-card:hover::before,
.courses-clean.is-visible .course-small-card:focus-visible::before {
  animation: none;
}

.courses-clean.is-visible .course-small-item:nth-child(2) .course-small-card img,
.courses-clean.is-visible .course-small-item:nth-child(2) .course-small-card::before {
  animation-delay: -2s;
}

.courses-clean.is-visible .course-small-item:nth-child(3) .course-small-card img,
.courses-clean.is-visible .course-small-item:nth-child(3) .course-small-card::before {
  animation-delay: -4s;
}

.additional-courses-grid .course-small-item:nth-child(1) {
  --course-glow-a: rgba(219, 229, 127, 0.38);
  --course-glow-b: rgba(217, 77, 157, 0.30);
  --course-wash: rgba(239, 128, 84, 0.22);
  --course-wash-strong: rgba(219, 229, 127, 0.30);
  --course-outline: rgba(219, 229, 127, 0.82);
  --course-shadow: rgba(219, 229, 127, 0.22);
  --course-hover-rotate: -1.4deg;
  --course-copy-rotate: 0.7deg;
}

.additional-courses-grid .course-small-item:nth-child(2) {
  --course-glow-a: rgba(92, 200, 220, 0.36);
  --course-glow-b: rgba(143, 96, 168, 0.38);
  --course-wash: rgba(92, 200, 220, 0.22);
  --course-wash-strong: rgba(92, 200, 220, 0.30);
  --course-outline: rgba(92, 200, 220, 0.80);
  --course-shadow: rgba(92, 200, 220, 0.22);
  --course-hover-rotate: 1.2deg;
  --course-copy-rotate: -0.7deg;
}

.additional-courses-grid .course-small-item:nth-child(3) {
  --course-glow-a: rgba(239, 128, 84, 0.34);
  --course-glow-b: rgba(217, 77, 157, 0.36);
  --course-wash: rgba(217, 77, 157, 0.24);
  --course-wash-strong: rgba(239, 128, 84, 0.30);
  --course-outline: rgba(239, 128, 84, 0.80);
  --course-shadow: rgba(217, 77, 157, 0.24);
  --course-hover-rotate: -0.8deg;
  --course-copy-rotate: 0.9deg;
}

@media (prefers-reduced-motion: reduce) {
  .courses-clean.is-visible .course-small-card img,
  .courses-clean.is-visible .course-small-card::before {
    animation: none;
  }

  .course-small-card,
  .course-small-card img,
  .course-small-card::before,
  .course-small-card::after,
  .course-small-copy {
    transition-duration: 0.01ms;
  }
}

/* DIREZIONE ARTISTICA */

.artistic-direction {
  position: relative;
  z-index: 4;
  background:
    radial-gradient(circle at 88% 12%, rgba(217, 77, 157, 0.28), transparent 32%),
    radial-gradient(circle at 12% 78%, rgba(92, 200, 220, 0.18), transparent 36%),
    radial-gradient(circle at 46% 8%, rgba(219, 229, 127, 0.07), transparent 30%),
    linear-gradient(135deg, #1A1230 0%, #14204B 54%, #281A38 100%);
  padding: 130px 80px 115px;
  color: var(--white);
  box-shadow: 0 -34px 80px rgba(0, 0, 0, 0.28);
}

.artistic-direction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 80px;
  right: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.artistic-direction-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 70px;
  align-items: center;
}

.artistic-portrait {
  position: relative;
  min-height: 560px;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-70px, 34px, 0) scale(0.96);
  transition:
    opacity 0.75s ease,
    transform 1s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.artistic-portrait img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.artistic-direction.is-visible .artistic-portrait {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.artistic-copy {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.artistic-copy h2 {
  font-family: "Metana", "NeueMetanaNext", "JuniorDisplay", var(--font-sans);
  margin: 0 0 30px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 600;
}

.artistic-copy .section-label,
.artistic-copy h2,
.artistic-quote,
.artistic-signature {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.72s ease,
    transform 0.82s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.artistic-direction.is-visible .artistic-copy .section-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.14s;
}

.artistic-direction.is-visible .artistic-copy h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

.artistic-direction.is-visible .artistic-quote {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.38s;
}

.artistic-quote {
  margin: 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: 19px;
  font-style: italic;
  line-height: 1.55;
}

.artistic-signature {
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 5px;
  position: relative;
}

.artistic-signature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.9s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0.66s;
}

.artistic-direction.is-visible .artistic-signature {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.54s;
}

.artistic-direction.is-visible .artistic-signature::before {
  width: 150px;
}

.artistic-signature strong {
  color: var(--pink);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.artistic-signature span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* DOCENTI */

.teachers {
  position: relative;
  z-index: 4;
  background:
    radial-gradient(circle at 12% 0%, rgba(217, 77, 157, 0.28), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(92, 200, 220, 0.24), transparent 34%),
    linear-gradient(135deg, var(--dark) 0%, var(--deep) 58%, var(--ink-soft) 100%);
  color: var(--white);
  padding: 115px 80px;
  overflow: hidden;
}

.teachers::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  pointer-events: none;
}

.teachers::after {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(221, 229, 127, 0.30), transparent 68%);
  pointer-events: none;
}

.teachers-inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translate3d(-180px, 0, 0) rotate(-2deg);
  transform-origin: 0 50%;
  transition:
    opacity 0.58s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.teachers.is-visible .teachers-inner {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}

.teachers-head {
  max-width: 1180px;
  margin-bottom: 48px;
}

.teachers-head h2 {
  font-family: "JuniorDisplay", var(--font-sans);
  margin: 0 0 26px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 900;
}

.teachers-head p:not(.section-label) {
  margin: 0;
  max-width: 1180px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
  text-align: justify;
  text-align-last: left;
}

.teachers-highlight {
  color: var(--yellow);
  font-weight: 900;
}

.teachers-final-highlight {
  color: var(--yellow);
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.teachers-grid .teacher-card-link {
  min-height: 240px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 6px solid var(--teacher-accent);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  opacity: 0;
  transform: translate3d(-42px, 24px, 0) rotate(-1.5deg);
  transition:
    opacity 0.64s ease,
    transform 0.78s cubic-bezier(0.19, 1, 0.22, 1),
    background 0.35s ease,
    border-color 0.35s ease;
}

.teachers.is-visible .teachers-grid .teacher-card-link {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(2) {
  transition-delay: 0.08s;
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(3) {
  transition-delay: 0.16s;
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(4) {
  transition-delay: 0.24s;
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(5) {
  transition-delay: 0.32s;
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(6) {
  transition-delay: 0.40s;
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(7) {
  transition-delay: 0.48s;
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(8) {
  transition-delay: 0.56s;
}

.teachers.is-visible .teachers-grid .teacher-card-link:nth-child(9) {
  transition-delay: 0.64s;
}

.teachers-grid .teacher-card-link:hover,
.teachers-grid .teacher-card-link:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--teacher-accent);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.22),
    0 0 34px color-mix(in srgb, var(--teacher-accent) 36%, transparent);
  transform: translateY(-6px);
}

.teachers-grid .teacher-card-link:nth-child(1) {
  --teacher-accent: var(--orange);
}

.teachers-grid .teacher-card-link.teacher-deputy {
  --teacher-accent: var(--turquoise);
}

.teachers-grid .teacher-card-link:nth-child(2) {
  --teacher-accent: var(--turquoise);
}

.teachers-grid .teacher-card-link:nth-child(3) {
  --teacher-accent: var(--pink);
}

.teachers-grid .teacher-card-link:nth-child(4) {
  --teacher-accent: var(--pink);
}

.teachers-grid .teacher-card-link:nth-child(5) {
  --teacher-accent: var(--turquoise);
}

.teachers-grid .teacher-card-link:nth-child(6) {
  --teacher-accent: var(--turquoise);
}

.teachers-grid .teacher-card-link:nth-child(7) {
  --teacher-accent: var(--yellow);
}

.teachers-grid .teacher-card-link:nth-child(8) {
  --teacher-accent: var(--yellow);
}

.teachers-grid .teacher-card-link:nth-child(9) {
  --teacher-accent: var(--yellow);
}

.teachers-grid span {
  min-height: 30px;
  display: block;
  color: var(--teacher-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.25;
  text-transform: uppercase;
}

.teachers-grid h3 {
  font-family: "JuniorDisplay", var(--font-sans);
  margin: 30px 0 0;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.teachers-grid p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.45;
}

.teachers-link {
  width: fit-content;
  min-height: 52px;
  margin-top: 34px;
  padding: 0 22px;
  background: var(--yellow);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.teachers-link:hover {
  transform: translateY(-2px);
}

/* SEZIONE SPAZI */

.spazi {
  position: relative;
  z-index: 3;
  min-height: auto;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 128, 84, 0.18), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(92, 200, 220, 0.20), transparent 34%),
    linear-gradient(145deg, #0E1328 0%, #14102A 52%, #071827 100%);
  padding: 120px 80px;
  color: var(--white);
  overflow: hidden;
}

.spazi::before {
  content: "";
  position: absolute;
  inset: auto -8% -22% auto;
  width: 430px;
  height: 430px;
  background: var(--pink);
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
}

.spazi-inner {
  max-width: min(1500px, calc(100vw - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(0, 831px);
  gap: clamp(36px, 4vw, 72px);
  align-items: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s ease,
    transform 0.82s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.spazi.is-visible .spazi-inner {
  opacity: 1;
  transform: translateY(0);
}

.spazi-copy {
  max-width: 500px;
}

.spazi-copy > p:first-child {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.spazi-copy h2 {
  font-family: "JuniorDisplay", var(--font-sans);
  margin: 0 0 28px;
  font-size: clamp(34px, 3.25vw, 56px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
  color: var(--white);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.spazi-copy > p:not(.section-label) {
  margin: 0;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.55;
  text-align: left;
  text-align-last: auto;
}

.spazi-tags {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.spazi-tags button {
  min-height: 54px;
  min-width: 132px;
  padding: 0 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(196, 153, 220, 0.30), transparent 36%),
    linear-gradient(135deg, rgba(40, 24, 58, 0.96), rgba(156, 93, 155, 0.72));
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.68);
  outline: 4px solid rgba(196, 153, 220, 0.72);
  outline-offset: -9px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow:
    0 0 18px rgba(196, 153, 220, 0.26),
    0 18px 34px rgba(0, 0, 0, 0.24);
  transform: rotate(var(--space-tag-rotate, 0deg));
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    outline-color 0.3s ease;
}

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

.spazi-tags button:hover,
.spazi-tags button.active {
  transform: translateY(-3px) scale(1.035) rotate(var(--space-tag-rotate, 0deg));
  outline-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.30),
    0 0 30px rgba(196, 153, 220, 0.34),
    0 22px 54px rgba(0, 0, 0, 0.30);
}

.spazi-tags button:hover::before,
.spazi-tags button.active::before {
  opacity: 0.95;
  transform: translateX(18%) rotate(8deg);
}

.spazi-tags button:nth-child(1) {
  --space-tag-rotate: -1.5deg;
}

.spazi-tags button:nth-child(2) {
  --space-tag-rotate: 1deg;
  color: var(--white);
}

.spazi-tags button:nth-child(3) {
  --space-tag-rotate: -0.5deg;
}

.spazi-tags button:nth-child(4) {
  --space-tag-rotate: 1.5deg;
  color: var(--white);
}

.spazi-gallery {
  position: relative;
  width: 831px;
  max-width: 100%;
  min-height: 835px;
  overflow: visible;
  background: transparent;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.34));
  isolation: isolate;
  justify-self: end;
  transform: translateX(clamp(0px, 2vw, 28px));
}

.spazi-gallery::before {
  content: "";
  position: absolute;
  inset: -5.8%;
  z-index: 4;
  background: url("images/cornice.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.space-card {
  margin: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  background: #120D24;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.space-card.active {
  opacity: 1;
  pointer-events: auto;
}

.space-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.space-card.active img {
  transform: scale(1.025);
}

.space-card figcaption {
  position: absolute;
  left: 28px;
  bottom: 34px;
  padding: 10px 13px;
  background: rgba(14, 19, 40, 0.92);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30);
}

.spazi-gallery:hover .space-card.active img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

/* DOVE SIAMO */

.where {
  position: relative;
  z-index: 3;
  background:
    linear-gradient(rgba(21, 11, 31, 0.80), rgba(21, 11, 31, 0.80)),
    url("images/retino home.png") center / cover no-repeat,
    radial-gradient(circle at 16% 8%, rgba(143, 96, 168, 0.30), transparent 32%),
    linear-gradient(135deg, var(--dark), var(--deep));
  padding: 110px 80px;
  color: var(--white);
}

.where-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 64px;
  align-items: center;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s ease,
    transform 0.82s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.where.is-visible .where-inner {
  opacity: 1;
  transform: translateY(0);
}

.where-copy {
  max-width: 560px;
}

.where-copy h2 {
  font-family: "JuniorDisplay", var(--font-sans);
  margin: 0 0 28px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 900;
}

.where-copy > p:not(.section-label) {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.55;
}

.where-points {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.where-points span {
  min-height: 54px;
  min-width: 132px;
  padding: 0 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, var(--space-tag-glow, rgba(219, 229, 127, 0.42)), transparent 36%),
    linear-gradient(135deg, var(--space-tag-a, rgba(28, 16, 36, 0.96)), var(--space-tag-b, rgba(217, 77, 157, 0.88)));
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.88);
  outline: 4px solid var(--space-tag-outline, rgba(92, 200, 220, 0.78));
  outline-offset: -9px;
  box-shadow:
    0 0 18px var(--space-tag-shadow, rgba(92, 200, 220, 0.34)),
    0 18px 34px rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(var(--space-tag-rotate, 0deg));
}

.where-points span,
.where-map a {
  --tag-bg-a: rgba(30, 28, 60, 0.96);
  --tag-bg-b: rgba(91, 128, 172, 0.72);
  --tag-outline: rgba(143, 216, 255, 0.72);
  --tag-glow-a: rgba(143, 216, 255, 0.30);
  --tag-shadow: rgba(143, 216, 255, 0.26);
  background:
    radial-gradient(circle at 18% 16%, var(--tag-glow-a), transparent 36%),
    linear-gradient(135deg, var(--tag-bg-a), var(--tag-bg-b)) !important;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.88);
  outline-color: var(--tag-outline);
  box-shadow:
    0 0 18px var(--tag-shadow),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.where-points span::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: auto;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.42) 50%, transparent 66%);
  opacity: 0.58;
  transform: translateX(-24%) rotate(-8deg);
}

.where-points span:nth-child(1) {
  --tag-bg-a: rgba(30, 28, 60, 0.96);
  --tag-bg-b: rgba(91, 128, 172, 0.72);
  --tag-outline: rgba(143, 216, 255, 0.72);
  --tag-glow-a: rgba(143, 216, 255, 0.30);
  --tag-shadow: rgba(143, 216, 255, 0.26);
  --space-tag-rotate: -1.5deg;
}

.where-points span:nth-child(2) {
  --tag-bg-a: rgba(40, 24, 58, 0.96);
  --tag-bg-b: rgba(156, 93, 155, 0.72);
  --tag-outline: rgba(196, 153, 220, 0.72);
  --tag-glow-a: rgba(196, 153, 220, 0.30);
  --tag-shadow: rgba(196, 153, 220, 0.26);
  --space-tag-rotate: 1deg;
  color: var(--white);
}

.where-points span:nth-child(3) {
  --tag-bg-a: rgba(20, 32, 62, 0.96);
  --tag-bg-b: rgba(91, 151, 178, 0.70);
  --tag-outline: rgba(116, 217, 230, 0.68);
  --tag-glow-a: rgba(116, 217, 230, 0.28);
  --tag-shadow: rgba(116, 217, 230, 0.24);
  --space-tag-rotate: -0.5deg;
}

.where-points span:nth-child(4) {
  --tag-bg-a: rgba(34, 27, 64, 0.96);
  --tag-bg-b: rgba(132, 104, 178, 0.72);
  --tag-outline: rgba(143, 216, 255, 0.66);
  --tag-glow-a: rgba(217, 77, 157, 0.24);
  --tag-shadow: rgba(132, 104, 178, 0.26);
  --space-tag-rotate: 1.5deg;
  color: var(--white);
}

.where-map {
  min-height: 470px;
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.where-map iframe {
  width: 100%;
  height: 100%;
  min-height: 470px;
  display: block;
  border: 0;
  filter: saturate(1.05) contrast(1.02);
}

.where-map a {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  min-height: 58px;
  padding: 0 22px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  outline: 4px solid var(--tag-outline, rgba(143, 216, 255, 0.72));
  outline-offset: -9px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transition:
    background 0.24s ease,
    transform 0.24s ease;
}

.where-map a:hover,
.where-map a:focus-visible {
  transform: translateY(-2px);
  outline-color: rgba(255, 255, 255, 0.86);
}

.where-map a:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

/* CONTATTACI */

.home-contact {
  position: relative;
  z-index: 3;
  padding: 110px 80px;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 128, 84, 0.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(92, 200, 220, 0.16), transparent 32%),
    linear-gradient(145deg, #0e1328 0%, #14102a 54%, #071827 100%);
  color: var(--white);
}

.home-contact-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 58px;
  align-items: start;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.72s ease,
    transform 0.82s cubic-bezier(0.19, 1, 0.22, 1);
}

.home-contact.is-visible .home-contact-inner {
  opacity: 1;
  transform: translateY(0);
}

.home-contact-copy h2 {
  font-family: "JuniorDisplay", var(--font-sans);
  margin: 0 0 26px;
  max-width: 380px;
  color: var(--white);
  font-size: clamp(36px, 3.5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 900;
}

.home-contact-copy > p:not(.section-label) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.55;
}

.home-contact-mail {
  display: inline-flex;
  margin-top: 30px;
  color: var(--yellow);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
}

.home-contact-form {
  padding: 32px;
  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);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-contact-form input,
.home-contact-form select,
.home-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-size: 17px;
  padding: 14px;
  outline: none;
}

.home-contact-form select option {
  color: var(--dark);
}

.home-contact-form input:focus,
.home-contact-form select:focus,
.home-contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239, 128, 84, 0.18);
}

.home-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.home-contact-form .full {
  grid-column: 1 / -1;
}

.home-contact-button {
  width: 100%;
  border: 0;
  padding: 16px 22px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition:
    transform 0.24s ease,
    background 0.24s ease;
}

.home-contact-button:hover {
  background: var(--pink);
  transform: translateY(-2px);
}

/* Subtitle neon hover */

:where(
  .courses-intro h2,
  .artistic-copy h2,
  .teachers-head h2,
  .spazi-copy h2,
  .where-copy h2,
  .home-contact-copy h2
) {
  cursor: default;
  text-shadow: none;
  transition:
    color 0.34s ease,
    text-shadow 0.34s ease;
}

:where(
  .courses-intro h2,
  .artistic-copy h2,
  .teachers-head h2,
  .spazi-copy h2,
  .where-copy h2,
  .home-contact-copy h2
):hover {
  color: var(--white);
  text-shadow:
    0 0 8px var(--subtitle-glow-core),
    0 0 18px var(--subtitle-glow-a),
    0 0 34px var(--subtitle-glow-b),
    0 0 52px var(--subtitle-glow-c);
}

.courses-intro h2 {
  --subtitle-glow-core: rgba(239, 128, 84, 0.92);
  --subtitle-glow-a: rgba(239, 128, 84, 0.58);
  --subtitle-glow-b: rgba(169, 139, 255, 0.46);
  --subtitle-glow-c: rgba(116, 217, 158, 0.34);
}

.artistic-copy h2 {
  --subtitle-glow-core: rgba(169, 139, 255, 0.92);
  --subtitle-glow-a: rgba(169, 139, 255, 0.58);
  --subtitle-glow-b: rgba(239, 128, 84, 0.44);
  --subtitle-glow-c: rgba(116, 217, 158, 0.34);
}

.teachers-head h2 {
  --subtitle-glow-core: rgba(255, 122, 89, 0.92);
  --subtitle-glow-a: rgba(255, 122, 89, 0.56);
  --subtitle-glow-b: rgba(154, 107, 255, 0.44);
  --subtitle-glow-c: rgba(116, 217, 158, 0.32);
}

.spazi-copy h2 {
  --subtitle-glow-core: rgba(116, 217, 158, 0.92);
  --subtitle-glow-a: rgba(116, 217, 158, 0.56);
  --subtitle-glow-b: rgba(255, 91, 79, 0.42);
  --subtitle-glow-c: rgba(169, 139, 255, 0.32);
}

.where-copy h2 {
  --subtitle-glow-core: rgba(169, 139, 255, 0.92);
  --subtitle-glow-a: rgba(169, 139, 255, 0.56);
  --subtitle-glow-b: rgba(116, 217, 158, 0.42);
  --subtitle-glow-c: rgba(239, 128, 84, 0.32);
}

.home-contact-copy h2 {
  --subtitle-glow-core: rgba(239, 128, 84, 0.92);
  --subtitle-glow-a: rgba(239, 128, 84, 0.56);
  --subtitle-glow-b: rgba(116, 217, 158, 0.42);
  --subtitle-glow-c: rgba(169, 139, 255, 0.32);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .top-banner {
    min-height: 188px;
    padding: 20px 24px;
    flex-direction: column;
    gap: 12px;
  }

  .top-banner strong {
    font-size: 36px;
    letter-spacing: 1px;
  }

  .top-banner span {
    max-width: 330px;
    justify-items: center;
    text-align: center;
    font-size: 17px;
  }

  .top-banner span b {
    font-size: 12px;
  }

  .top-banner span small {
    font-size: 17px;
  }

  .top-banner em {
    min-height: 40px;
    padding: 0 14px;
    font-size: 11px;
  }

  .site-header {
    height: 76px;
    padding: 0 24px;
  }

  .menu {
    display: none;
  }

  .logo {
    flex: 0 0 auto;
  }

  .logo img {
    height: 42px;
  }

  .hero {
    min-height: calc(108vh - 76px);
  }

  .center-card {
    width: calc(100% - 36px);
    min-height: 184px;
    padding: 28px 22px 22px;
  }

  .hero-logo {
    width: min(100%, 288px);
  }

  .about-cinearte {
    min-height: 92vh;
    margin-top: -9vh;
    padding: 92px 18px 160px;
  }

  .about-inner {
    max-width: 100%;
  }

  .about-inner h2,
  .courses-intro h2 {
    font-size: 36px;
    letter-spacing: 0;
  }

  .about-inner .hero-mask-title {
    width: 100%;
    padding: 0 0.12em;
    font-size: clamp(48px, 15vw, 74px);
    line-height: 0.86;
    letter-spacing: 0;
  }

  .about-text-wrap {
    max-width: 100%;
  }

  .about-text,
  .courses-description {
    font-size: 17px;
    text-align: center;
  }

  .about-text {
    font-size: 20px;
    line-height: 1.45;
  }

  .manifesto-postit {
    margin-top: -6vh;
  }

  .manifesto-postit-image {
    width: 100vw;
    max-height: none;
    transform: none;
  }

  .manifesto-tape {
    bottom: -28px;
  }

  .manifesto-tape-left {
    left: 16px;
    width: clamp(128px, 42vw, 220px);
  }

  .manifesto-tape-right {
    right: 18px;
    width: clamp(86px, 28vw, 150px);
  }

  .cinearte-identity {
    min-height: auto;
    padding: 58px 24px 62px;
  }

  .cinearte-definition-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cine-mark"
      "cine-copy"
      "arte-copy"
      "arte-mark";
    gap: 24px;
  }

  .cinearte-definition-rule {
    display: none;
  }

  .cinearte-definition-mark img {
    width: min(100%, 360px);
  }

  .cinearte-definition-mark-arte img {
    margin-left: auto;
  }

  .cinearte-identity-block {
    max-width: 420px;
  }

  .cinearte-identity-block-arte {
    justify-self: end;
  }

  .courses-clean {
    min-height: auto;
    padding: 95px 24px 50px;
  }

  .courses-doodle {
    inset: -10% -36% -8%;
    opacity: 0.13;
  }

  .courses-intro {
    margin: 0 auto 56px;
  }

  .courses-intro > p:first-child,
  .about-label,
  .section-label {
    font-size: 11px;
    letter-spacing: 3px;
  }

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

  .course-image-card {
    min-height: auto;
  }

  .course-image-card img {
    min-height: auto;
    height: 100%;
  }

  .course-cta {
    width: min(300px, calc(100% - 32px));
    min-height: 140px;
    padding: 24px 22px 26px;
    outline-width: 5px;
    outline-offset: -12px;
  }

  .course-cta strong {
    max-width: 220px;
    font-size: 28px;
    line-height: 0.98;
  }

  .additional-courses-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 38px;
  }

  .course-small-card,
  .course-small-card:nth-child(2),
  .course-small-card:nth-child(3) {
    aspect-ratio: 1 / 1.18;
    min-height: 0;
    margin-top: 0;
  }

  .course-small-copy {
    width: min(82%, 330px);
    height: 268px;
    padding: 24px 20px 26px;
  }

  .course-small-copy h3 {
    font-size: 30px;
  }

  .artistic-direction {
    padding: 95px 24px 80px;
  }

  .artistic-direction::before {
    left: 24px;
    right: 24px;
  }

  .artistic-direction-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .artistic-portrait,
  .artistic-portrait img {
    min-height: 430px;
  }

  .artistic-copy h2 {
    font-size: 34px;
    letter-spacing: 0;
  }

  .artistic-quote {
    font-size: 17px;
  }

  .teachers {
    padding: 85px 24px;
  }

  .teachers-head h2 {
    font-size: 36px;
    letter-spacing: 0;
  }

  .teachers-head p:not(.section-label) {
    font-size: 17px;
  }

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

  .teachers-grid .teacher-card-link:nth-child(1) {
    grid-column: auto;
  }

  .spazi {
    padding: 100px 24px 60px;
  }

  .spazi-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .spazi-copy h2 {
    font-size: 36px;
    letter-spacing: 0;
  }

  .spazi-copy > p:not(.section-label) {
    font-size: 17px;
  }

  .spazi-gallery {
    justify-self: center;
    min-height: 360px;
    transform: none;
  }

  .where {
    padding: 85px 24px;
  }

  .where-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .where-copy h2 {
    font-size: 36px;
    letter-spacing: 0;
  }

  .where-copy > p:not(.section-label) {
    font-size: 17px;
  }

  .where-map,
  .where-map iframe {
    min-height: 340px;
  }

  .home-contact {
    padding: 85px 24px;
  }

  .home-contact-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-contact-copy h2 {
    font-size: 36px;
  }

  .home-contact-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* GIUSTIFICAZIONE TESTI */

p:not(.section-label):not(.about-label),
.course-copy p,
.course-small-copy p,
.teachers-grid p {
  text-align: justify;
  text-align-last: left;
}

#junior-academy .course-copy p {
  text-align: left;
  text-align-last: auto;
}

.about-inner h2,
.courses-intro h2,
.course-cta strong,
.course-small-copy h3,
.artistic-copy h2,
.teachers-head h2,
.teachers-grid h3,
.spazi-copy h2,
.where-copy h2 {
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.course-cta strong {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1;
}

.course-small-copy h3 {
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1;
}

.teachers-grid h3 {
  font-size: clamp(22px, 2vw, 27px);
}

.about-inner .hero-mask-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.spazi-copy h2 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.spazi-copy > p:not(.section-label) {
  text-align: left;
  text-align-last: auto;
}

.course-cta {
  width: min(500px, calc(100% - 48px));
  min-height: 168px;
  padding: 28px 32px 30px;
}

.course-cta strong {
  max-width: 100%;
  font-size: clamp(20px, 2.25vw, 28px);
  line-height: 1;
  white-space: normal;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.course-small-copy {
  width: min(84%, 350px);
  height: 268px;
  padding: 24px 22px 26px;
}

.course-small-copy h3 {
  font-size: clamp(21px, 1.9vw, 28px);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.course-small-copy p {
  font-size: 14px;
  line-height: 1.34;
}

main p:not(.section-label):not(.about-label),
blockquote {
  text-align: justify;
  text-align-last: left;
}

.cinearte-identity-copy p {
  text-align: center;
  text-align-last: center;
}

h1,
h2,
h3,
.course-cta strong,
.course-small-copy h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* CTA neon treatment */
.top-banner em,
.course-small-more,
.teachers-link,
.home-contact-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.88);
  outline: 4px solid rgba(92, 200, 220, 0.72);
  outline-offset: -10px;
  background:
    linear-gradient(135deg, var(--yellow), var(--turquoise));
  color: var(--dark);
  box-shadow:
    0 0 18px rgba(219, 229, 127, 0.46),
    0 18px 42px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    outline-color 0.3s ease,
    background 0.3s ease;
}

.course-small-more,
.teachers-link,
.home-contact-button {
  min-height: 52px;
  padding-left: 22px;
  padding-right: 22px;
}

.top-banner em::before,
.course-small-more::before,
.teachers-link::before,
.home-contact-button::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);
}

.top-banner:hover em,
.course-small-more:hover,
.teachers-link:hover,
.home-contact-button: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.82);
  box-shadow:
    0 0 16px rgba(255, 255, 255, 0.34),
    0 0 30px rgba(219, 229, 127, 0.46),
    0 22px 54px rgba(0, 0, 0, 0.30);
}

.top-banner:hover em::before,
.course-small-more:hover::before,
.teachers-link:hover::before,
.home-contact-button:hover::before {
  opacity: 0.95;
  transform: translateX(18%) rotate(8deg);
}

.teachers-link,
.teachers-link:hover,
.home-contact-button,
.home-contact-button:hover {
  background:
    radial-gradient(circle at 18% 16%, rgba(116, 217, 230, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(20, 32, 62, 0.96), rgba(91, 151, 178, 0.70)) !important;
  color: var(--white);
}

.teachers-link,
.home-contact-button {
  outline-color: rgba(116, 217, 230, 0.68);
  box-shadow:
    0 0 18px rgba(116, 217, 230, 0.24),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.teachers-link:hover,
.home-contact-button:hover {
  outline-color: rgba(255, 255, 255, 0.86);
}

.courses-intro h2 {
  font-family: "NeueMetanaNext", "JuniorDisplay", var(--font-sans) !important;
  font-weight: 600 !important;
  font-synthesis: none;
}

/* HOME RESPONSIVE REFINEMENTS */

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

  img,
  iframe {
    max-width: 100%;
  }

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

  .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: 30;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px;
    background: rgba(14, 19, 40, 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;
  }

  .top-banner {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero {
    min-height: min(840px, calc(100svh - 84px));
    background-size: cover;
  }

  .center-card,
  .courses-grid,
  .additional-courses-grid,
  .artistic-direction-inner,
  .cinearte-identity-copy,
  .teachers-grid,
  .spazi-inner,
  .where-inner,
  .home-contact-inner {
    max-width: 100%;
  }

  .course-image-card,
  .course-small-card,
  .artistic-portrait,
  .spazi-gallery,
  .where-map {
    width: 100%;
  }

  .home-contact-button,
  .course-small-more,
  .teachers-link,
  .top-banner em {
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  .top-banner {
    min-height: auto;
    padding: 18px 18px 20px;
    gap: 10px;
  }

  .top-banner strong {
    font-size: 30px;
  }

  .top-banner span,
  .top-banner span small {
    font-size: 15px;
  }

  .site-header {
    height: 72px;
    padding: 0 18px;
  }

  .logo img {
    height: 40px;
  }

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

  .hero {
    min-height: 78svh;
    background-size: cover;
    background-position: 18% center;
  }

  .center-card {
    width: calc(100% - 32px);
    min-height: 170px;
    padding: 24px 20px;
  }

  .about-cinearte,
  .courses-clean,
  .artistic-direction,
  .cinearte-identity,
  .teachers,
  .spazi,
  .where,
  .home-contact {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-cinearte {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 128px;
  }

  .about-inner .hero-mask-title {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    padding: 0;
    font-size: clamp(36px, 11.5vw, 58px);
    line-height: 0.9;
    overflow-wrap: normal;
    word-break: normal;
  }

  .manifesto-postit {
    margin-top: -4vh;
  }

  .manifesto-postit-image {
    width: 100%;
    min-width: 0;
  }

  .manifesto-tape {
    bottom: -22px;
  }

  .courses-clean {
    padding-top: 78px;
    padding-bottom: 44px;
  }

  .courses-intro {
    margin-bottom: 42px;
  }

  .courses-intro h2,
  .artistic-copy h2,
  .teachers-head h2,
  .spazi-copy h2,
  .where-copy h2,
  .home-contact-copy h2 {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 0.98;
  }

  .spazi-copy h2 {
    font-size: clamp(27px, 7.2vw, 36px);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
  }

  .courses-intro h2 {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    font-size: clamp(26px, 7.8vw, 38px);
    line-height: 0.96;
  }

  .courses-intro h2 span {
    white-space: normal;
    text-wrap: balance;
  }

  .courses-offer-summary {
    padding: 22px 18px;
    font-size: 17px;
  }

  .courses-grid,
  .additional-courses-grid,
  .artistic-direction-inner,
  .cinearte-identity-copy,
  .teachers-grid,
  .spazi-inner,
  .where-inner,
  .home-contact-inner,
  .home-contact-form {
    grid-template-columns: 1fr;
  }

  .cinearte-definition-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cine-mark"
      "cine-copy"
      "arte-copy"
      "arte-mark";
    gap: 22px;
  }

  .cinearte-definition-rule {
    display: none;
  }

  .cinearte-definition-mark img {
    width: min(100%, 340px);
  }

  .cinearte-identity-block {
    max-width: 360px;
  }

  .course-image-card {
    min-height: auto;
  }

  .additional-courses-grid .course-small-item,
  .courses-clean.is-visible .course-small-item {
    transform: none;
  }

  .course-image-wrap {
    aspect-ratio: 4 / 5;
  }

  .course-copy {
    padding: 24px 20px 26px;
  }

  .course-copy p,
  .course-small-copy p,
  .artistic-quote,
  .teachers-head p:not(.section-label),
  .spazi-copy > p:not(.section-label),
  .where-copy > p:not(.section-label),
  .home-contact-copy p:not(.section-label) {
    font-size: 16px;
    line-height: 1.48;
  }

  .course-small-card {
    aspect-ratio: 1 / 1.08;
  }

  .course-small-copy {
    width: min(88%, 320px);
    height: 240px;
    padding: 22px 18px;
  }

  .course-small-copy h3 {
    font-size: clamp(24px, 8vw, 30px);
  }

  .artistic-portrait,
  .artistic-portrait img {
    min-height: 340px;
  }

  .cinearte-identity::before {
    inset: 14px;
  }

  .teachers-grid {
    gap: 18px;
  }

  .spazi-gallery,
  .where-map,
  .where-map iframe {
    min-height: 320px;
  }

  .spazi-tags,
  .where-points {
    grid-template-columns: 1fr;
  }

  .home-contact-form {
    padding: 20px;
  }

  .home-contact-form input,
  .home-contact-form textarea,
  .home-contact-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .top-banner strong {
    font-size: 26px;
  }

  .hero {
    min-height: 72svh;
  }

  .hero-logo {
    width: min(100%, 248px);
  }

  .about-inner .hero-mask-title {
    font-size: clamp(34px, 11vw, 50px);
  }

  .courses-intro h2 {
    font-size: clamp(24px, 8.2vw, 32px);
  }

  .course-cta {
    min-height: 122px;
    padding: 20px 18px;
  }

  .course-cta strong {
    font-size: clamp(22px, 8vw, 28px);
  }

  .course-small-card {
    aspect-ratio: 1 / 1.16;
  }

  .artistic-portrait,
  .artistic-portrait img {
    min-height: 300px;
  }

  .spazi-gallery,
  .where-map,
  .where-map iframe {
    min-height: 280px;
  }
}

/* MOBILE TITLE SAFETY */

@media (max-width: 768px) {
  .about-inner .hero-mask-title,
  .courses-intro h2 {
    width: min(100%, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .about-inner .hero-mask-title {
    font-size: clamp(30px, 9.8vw, 44px);
    line-height: 0.92;
  }

  .courses-intro h2 {
    font-size: clamp(23px, 7vw, 32px);
    line-height: 0.98;
  }

  .courses-intro h2 span {
    white-space: normal;
    text-wrap: balance;
  }
}

/* MOBILE TEACHERS SECTION FIX */

@media (max-width: 768px) {
  .teachers {
    padding: 72px 18px;
  }

  .teachers::before {
    display: none;
  }

  .teachers-inner,
  .teachers.is-visible .teachers-inner {
    opacity: 1;
    transform: none;
  }

  .teachers-head {
    max-width: calc(100vw - 36px);
    margin-bottom: 34px;
  }

  .teachers-head h2 {
    max-width: calc(100vw - 36px);
    font-size: clamp(30px, 9vw, 40px);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .teachers-head p:not(.section-label) {
    max-width: calc(100vw - 36px);
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
    text-align-last: left;
  }

  .teachers-grid {
    gap: 16px;
  }

  .teachers-grid .teacher-card-link,
  .teachers.is-visible .teachers-grid .teacher-card-link {
    min-height: auto;
    padding: 22px 20px;
    opacity: 1;
    transform: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 5px solid var(--teacher-accent);
  }

  .teachers-grid h3 {
    margin-top: 22px;
    font-size: clamp(24px, 8vw, 32px);
  }

  .teachers-grid p {
    font-size: 14px;
    line-height: 1.42;
  }
}

/* CINEARTE DEFINITION POSTER OVERRIDES */

.cinearte-identity .cinearte-origin,
.cinearte-identity .cinearte-origin strong,
.cinearte-identity .cinearte-origin span,
.cinearte-identity .cinearte-identity-block > p {
  font-family: "Courier New", Courier, monospace !important;
}

.cinearte-identity .cinearte-identity-block-arte {
  justify-self: end !important;
  margin-left: auto !important;
  text-align: right !important;
}

.cinearte-identity .cinearte-identity-block-arte .cinearte-origin,
.cinearte-identity .cinearte-identity-block-arte .cinearte-origin strong,
.cinearte-identity .cinearte-identity-block-arte .cinearte-origin span,
.cinearte-identity .cinearte-identity-block-arte > p {
  margin-left: auto !important;
  text-align: right !important;
  text-align-last: right !important;
}

/* HOME OPEN DAY BANNER - JUNIOR PALETTE */

.top-banner {
  min-height: 112px;
  padding: 22px 76px;
  background:
    radial-gradient(circle at 16% 18%, rgba(143, 216, 255, 0.34), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(196, 153, 220, 0.26), transparent 34%),
    linear-gradient(135deg, #0e1328 0%, #182c55 46%, #171033 100%) !important;
  border-bottom: 4px solid rgba(143, 216, 255, 0.88);
  box-shadow:
    inset 0 -12px 30px rgba(0, 0, 0, 0.26),
    0 14px 42px rgba(92, 200, 220, 0.22);
  gap: 30px;
}

.top-banner span {
  max-width: 720px;
}

.top-banner strong {
  font-family: "Metana", "NeueMetanaNext", "JuniorDisplay", var(--font-sans) !important;
  color: var(--white);
  text-shadow:
    0 0 16px rgba(143, 216, 255, 0.38),
    0 0 34px rgba(196, 153, 220, 0.24);
}

.top-banner span b,
.top-banner em {
  font-family: "Metana", "NeueMetanaNext", "JuniorDisplay", var(--font-sans);
}

.top-banner span b {
  background: rgba(143, 216, 255, 0.16);
  border-color: rgba(143, 216, 255, 0.72);
  color: var(--white);
  font-size: clamp(21px, 2vw, 34px);
  line-height: 1;
  text-shadow:
    0 0 10px rgba(143, 216, 255, 0.78),
    0 0 24px rgba(196, 153, 220, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 18px rgba(143, 216, 255, 0.30);
}

.top-banner span small {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.top-banner em {
  background:
    linear-gradient(135deg, rgba(143, 216, 255, 0.98), rgba(196, 153, 220, 0.90)) !important;
  color: #0e1328 !important;
  border-color: rgba(255, 255, 255, 0.92);
  outline-color: rgba(143, 216, 255, 0.80);
  box-shadow:
    0 0 18px rgba(143, 216, 255, 0.48),
    0 18px 42px rgba(0, 0, 0, 0.26);
  transform: translateY(8px);
}

.top-banner:hover {
  background:
    radial-gradient(circle at 16% 18%, rgba(143, 216, 255, 0.42), transparent 32%),
    radial-gradient(circle at 82% 28%, rgba(196, 153, 220, 0.32), transparent 34%),
    linear-gradient(135deg, #11183a 0%, #21406f 46%, #21143e 100%) !important;
}

.top-banner:hover em {
  outline-color: rgba(196, 153, 220, 0.86);
  box-shadow:
    0 0 20px rgba(143, 216, 255, 0.58),
    0 0 34px rgba(196, 153, 220, 0.34),
    0 22px 54px rgba(0, 0, 0, 0.30);
  transform: translateY(8px);
}

@media (max-width: 900px) {
  .top-banner {
    min-height: 176px;
    padding: 20px 24px;
  }
}

@media (max-width: 768px) {
  .top-banner {
    min-height: auto;
    padding: 18px 18px 20px;
  }
}

/* HOME MANIFESTO FULL WIDTH */

.manifesto-postit-image {
  width: 100vw;
  max-width: none;
}

/* Text-only yellow harmonization */
.teachers-highlight,
.teachers-final-highlight,
.about-text strong,
.word-recompose .word-piece.word-emphasis,
.course-cta span,
.course-small-copy span,
.home-contact-mail {
  color: #DBE57F !important;
}
