* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7efec;
  color: #171516;
  font-family: "DM Sans", sans-serif;
}

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

/* =========================================================
   HEADER — MOBILE FIRST (base = mobile)
   ========================================================= */

.header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;

  height: 72px;
  padding: 0 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: #171516;
  background: #ffffff;

  border-bottom: 1px solid rgba(23, 21, 22, 0.08);

  transition:
    height .35s ease,
    background .35s ease,
    box-shadow .35s ease;
}

.header.scrolled {
  height: 72px;
  background: #ffffff;
}

/* LOGO */

.brand {
  display: flex;
  align-items: center;

  width: 160px;
  height: 80px;

  z-index: 25;
}

.brand img {
  display: block;

  width: 160px;
  max-height: 80px;

  object-fit: contain;
  object-position: left center;
}

.brand-number {
  font: 500 24px "Cormorant Garamond";
  letter-spacing: 1px;
  color: #efb8b7;
}

.brand-ballet {
  font: 600 21px "Cormorant Garamond";
  letter-spacing: 2px;
}

.brand-city {
  font-size: 8px;
  letter-spacing: 3px;
  margin-top: 5px;
}

/* =========================================================
   HAMBURGER — visibile di default (mobile)
   ========================================================= */

.menu-toggle {
  display: flex;
  flex-direction: column;

  gap: 5px;

  padding: 10px;

  background: transparent;
  border: 0;

  cursor: pointer;

  z-index: 30;
}

.menu-toggle span {
  display: block;

  width: 25px;
  height: 2px;

  background: #252122;

  transition:
    transform .25s ease,
    opacity .25s ease;
}

/* =========================================================
   NAV — menu a tendina mobile di default
   ========================================================= */

.nav {
  display: none;

  position: absolute;

  top: 72px;
  left: 0;

  width: 100%;

  padding: 20px 22px 28px;

  background: #ffffff;
  color: #252122;

  flex-direction: column;
  align-items: flex-start;

  gap: 20px;

  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;

  box-shadow: 0 15px 30px rgba(0,0,0,.08);
}

.nav.open {
  display: flex;
}

.nav a {
  width: 100%;

  color: #252122;
  opacity: .92;

  padding: 8px 0;

  transition:
    color .25s ease,
    opacity .25s ease;
}

.nav a:hover {
  color: #9d7777;
  opacity: 1;
}

.nav a.active {
  color: #9d7777;

  border-bottom: 1px solid #efb8b7;

  padding-bottom: 8px;
}

.nav-end {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 8px;

  width: 100%;
}

.nav-social {
  display: flex;
  justify-content: flex-start;

  gap: 10px;

  margin-top: 6px;
  padding-top: 16px;

  border-top: 1px solid rgba(23, 21, 22, .08);
}

.nav-social a {
  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 13px;

  background: #f7efec;
  color: #252122;

  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.nav-social a:hover {
  background: #efb8b7;
  color: #241c1d;

  transform: translateY(-1px);
}

.nav-social a.whatsapp-link {
  background: #25D366;
  color: #fff;
}

.nav-social a.whatsapp-link:hover {
  background: #1ebe5b;
}

.nav-cta {
  background: #efb8b7;
  color: #241c1d !important;

  padding: 15px 20px !important;

  border-radius: 3px;

  font-weight: 700;

  border: 1px solid #efb8b7;

  width: 100%;
  text-align: center;

  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.nav-cta:hover {
  background: #dba4a3;
  border-color: #dba4a3;

  color: #241c1d !important;

  transform: translateY(-1px);
}

/* =========================================================
   HERO — mobile first
   ========================================================= */

.hero {
  height: 100svh;
  min-height: 700px;

  position: relative;

  display: flex;
  align-items: center;

  color: #fff;

  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;

  background:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787141318/GRUPPO_SAGGIO_2_o78vxm.jpg")
    center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5,4,4,.88) 0%,
      rgba(5,4,4,.56) 45%,
      rgba(5,4,4,.15) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  margin: 0 24px;

  max-width: 610px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 3px;

  margin: 0 0 18px;

  color: #efb8b7;

  font-weight: 700;
}

.eyebrow.dark {
  color: #9d7777;
}

.hero h1 {
  font:
    500 70px/.68
    "Cormorant Garamond";

  margin: 0;

  letter-spacing: -4px;
}

.hero h1 span {
  font-size: .8em;
  color: #fff;
}

/* kicker "a.s.d." impercettibile sopra il titolo — .asd-mark, non "small" */
.hero h1 .asd-mark {
  display: block;

  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 1.5px;

  color: #efb8b7;
  opacity: .45;

  margin-bottom: -6px;
}

.script {
  font:
    400 38px
    "Allura";

  color: #efb8b7;

  margin: 28px 0 12px;
}

.hero-text {
  max-width: 430px;

  font-size: 15px;
  line-height: 1.65;

  color: #eee;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 12px;

  margin-top: 30px;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 20px;

  padding: 15px 22px;

  border: 1px solid transparent;

  text-transform: uppercase;

  font-size: 11px;

  letter-spacing: 1px;

  font-weight: 700;

  cursor: pointer;

  width: 100%;
}

.btn-primary {
  background: #efb8b7;
  color: #241c1d;
}

.btn-outline {
  border-color: rgba(255,255,255,.7);
  color: #fff;
}

.scroll {
  display: none;
}

/* =========================================================
   SEZIONI
   ========================================================= */

.section {
  padding: 75px 22px;
}

.section-heading {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 50px;
}

.section-heading h2,
.split-copy h2,
.trial h2,
.final-content h2 {
  font:
    500 clamp(44px, 5vw, 70px)/.95
    "Cormorant Garamond";

  margin: 0 0 18px;
}

.section-heading h2 em,
.split-copy h2 em,
.trial h2 em,
.final-content h2 em {
  font-family: "Allura";

  font-style: normal;

  color: #bd8d8c;

  font-weight: 400;
}

.section-heading > p:last-child {
  color: #756a68;

  line-height: 1.7;
}

/* =========================================================
   CORSI
   ========================================================= */

.course-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;

  max-width: 1280px;

  margin: auto;
}

.course-card {
  background: #fff;

  overflow: hidden;
}

.course-image {
  height: 300px;

  background-position: center;
  background-size: cover;
}

.img-1 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/propedeutica_smrync.jpg");
}

.img-2 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/pre_danza_o5iwla.jpg");
}

.img-3 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/modern_mytk1z.jpg");
}

.img-4 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/contemporaneo_hsa0nq.jpg");
}

.img-5 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169569/hiphop_kl9upe.jpg");
}

.img-6 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169569/classico_xbv9ii.jpg");
}
.img-7 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169786/potenziamento_gjhbed.jpg");
}

.course-body {
  padding: 18px;

  position: relative;
}

.course-body > span {
  color: #cba1a0;

  font-size: 11px;
}

.course-body h3 {
  font:
    600 25px
    "Cormorant Garamond";

  margin: 8px 0 2px;
}

.course-body p {
  font-size: 12px;

  color: #887d7a;

  margin: 0;
}

.course-body a {
  position: static;

  display: block;

  margin-top: 14px;

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 1px;
}

/* =========================================================
   LA SCUOLA
   ========================================================= */

.split-section {
  display: grid;

  grid-template-columns: 1fr;

  min-height: auto;

  background: #191616;

  color: #fff;
}

.split-photo {
  min-height: 430px;

  background:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787682883/scuola_nppbnn.jpg")
    center/cover;
}

.split-copy {
  padding: 65px 25px;

  display: flex;

  justify-content: center;

  flex-direction: column;
}

.split-copy .eyebrow {
  color: #efb8b7;
}

.split-copy h2 {
  font-size: clamp(45px, 4.5vw, 68px);
}

.split-copy > p {
  max-width: 500px;

  line-height: 1.8;

  color: #d4cdcc;
}

.stats {
  display: flex;
  flex-wrap: wrap;

  gap: 20px;

  margin-top: 35px;
}

.stats div {
  display: flex;
  flex-direction: column;

  min-width: 90px;
}

.stats strong {
  font:
    500 30px
    "Cormorant Garamond";

  color: #efb8b7;
}

.stats small {
  font-size: 9px;

  text-transform: uppercase;

  letter-spacing: 1px;

  color: #aaa;
}

/* =========================================================
   TRIAL
   ========================================================= */

.trial {
  padding: 75px 24px;

  background:
    #ead9d5
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787141318/GRUPPO_SAGGIO_czollc.jpg")
    center/cover no-repeat;
}

.trial-content {
  max-width: 720px;
}

.trial h2 {
  font-size: clamp(50px, 5vw, 76px);
}

.trial p {
  color: #706462;

  line-height: 1.7;
}

.trial form {
  margin-top: 35px;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;

  margin-bottom: 12px;
}

input,
select {
  width: 100%;

  border: 1px solid #d6c0bc;

  background: rgba(255,255,255,.85);

  padding: 16px;

  font: 14px "DM Sans";

  outline: none;
}

input:focus,
select:focus {
  border-color: #b88a89;
}

.full {
  width: 100%;

  border: 0;
}

.form-note {
  text-align: center !important;

  font-size: 11px !important;
}

/* =========================================================
   ORARI
   ========================================================= */

.schedule {
  background: #fff;
}

.schedule-list {
  max-width: 1000px;

  margin: auto;

  border-top: 1px solid #ded4d2;
}

.schedule-row {
  display: grid;

  grid-template-columns: 1.4fr .8fr;

  gap: 8px;

  align-items: center;

  padding: 23px 15px;

  border-bottom: 1px solid #ded4d2;
}

.schedule-row span {
  font:
    600 23px
    "Cormorant Garamond";
}

.schedule-row b,
.schedule-row strong,
.schedule-row time {
  font-size: 12px;

  font-weight: 500;

  color: #766b69;
}

.schedule-row strong {
  display: none;
}

.schedule-row time {
  display: none;

  text-align: right;
}

.schedule-note {
  text-align: center;

  color: #6b5f5c;

  font-size: 10px;

  margin-top: 20px;
}

/* =========================================================
   EVENTI
   ========================================================= */

.events {
  background: #f7efec;
}

.event-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 16px;

  max-width: 1200px;

  margin: auto;
}

.event-card {
  background: #fff;

  position: relative;
}

.event-image {
  height: 240px;

  background: center/cover;
}

.e1 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1782922091/bolle_jmngtc.jpg");
}

.e2 {
  background-image:
    url("https://images.unsplash.com/photo-1518834107812-67b0b7c58434?auto=format&fit=crop&w=1000&q=80");
}

.e3 {
  background-image:
    url("https://images.unsplash.com/photo-1547153760-18fc86324498?auto=format&fit=crop&w=1000&q=80");
}

.event-date {
  position: absolute;

  top: 205px;
  left: 20px;

  background: #191616;

  color: #fff;

  width: 65px;
  height: 65px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;
}

.event-date b {
  font:
    500 28px
    "Cormorant Garamond";
}

.event-date small {
  font-size: 8px;

  letter-spacing: 2px;
}

.event-copy {
  padding: 38px 25px 25px;
}

.event-copy h3 {
  font:
    600 27px
    "Cormorant Garamond";

  margin: 0 0 8px;
}

.event-copy p {
  font-size: 12px;

  color: #766b69;
}

/* =========================================================
   RECENSIONI
   ========================================================= */

.quotes {
  padding: 90px 5vw;

  background: #ead9d5;
}

.quote-grid {
  display: grid;

  grid-template-columns: 1fr;

  max-width: 1150px;

  margin: auto;
}

.quote-grid blockquote {
  margin: 0;

  padding: 30px 10px;

  font:
    500 20px/1.55
    "Cormorant Garamond";

  text-align: center;

  border-right: 0;
  border-bottom: 1px solid #d0b9b5;
}

.quote-grid blockquote:last-child {
  border: 0;
}

.quote-grid blockquote:before {
  content: "\201C";

  font:
    70px
    "Cormorant Garamond";

  color: #d5a9a8;

  display: block;

  height: 45px;
}

.quote-grid cite {
  display: block;

  font:
    10px
    "DM Sans";

  color: #756a68;

  margin-top: 20px;
}

/* =========================================================
   CTA FINALE
   ========================================================= */

.final-cta {
  height: 430px;

  position: relative;

  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;

  color: #fff;

  background:
    url("https://images.unsplash.com/photo-1504609813442-a8924e83f76e?auto=format&fit=crop&w=2000&q=80")
    center/cover;
}

.final-overlay {
  position: absolute;

  inset: 0;

  background: rgba(10,8,8,.72);
}

.final-content {
  position: relative;

  padding: 0 24px;
}

.final-content h2 {
  font-size: 56px;

  margin-bottom: 0;
}

.final-content > p:not(.eyebrow) {
  font:
    400 40px
    "Allura";

  color: #efb8b7;

  margin: 0 0 28px;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #151313;

  color: #eee;

  padding: 45px 24px 25px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 35px;

  position: relative;
}

footer small {
  color: #a99391;

  font-size: 9px;

  letter-spacing: 2px;
}

footer p {
  font-size: 12px;

  line-height: 1.8;

  color: #d0c8c6;
}

.footer-brand {
  grid-column: 1/-1;

  display: flex;

  flex-direction: column;

  justify-content: center;
}

.footer-brand img {
  width: 145px;

  max-height: 125px;

  object-fit: contain;

  object-position: left center;
}

.footer-brand span {
  font:
    500 34px
    "Cormorant Garamond";

  color: #efb8b7;
}

.footer-brand b {
  font:
    600 28px
    "Cormorant Garamond";
}

.footer-brand small {
  margin-top: 5px;
}

.socials {
  display: flex;

  gap: 15px;
}

.copyright {
  grid-column: 1/-1;

  border-top: 1px solid #342e2d;

  padding-top: 20px;

  color: #766b69;

  font-size: 9px;
}

/* =========================================================
   WHATSAPP
   ========================================================= */

.whatsapp {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: .25s ease;
}

.whatsapp:hover {
    transform: scale(1.08);
}

.toast {
  position: fixed;

  bottom: 95px;
  right: 24px;

  background: #191616;

  color: #fff;

  padding: 14px 18px;

  font-size: 11px;

  z-index: 40;

  transform: translateY(20px);

  opacity: 0;

  pointer-events: none;

  transition: .3s;
}

.toast.show {
  opacity: 1;

  transform: none;
}

/* =========================================================
   ANIMAZIONI
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(25px);

  transition: .8s ease;
}

.reveal.visible {
  opacity: 1;

  transform: none;
}

/* =========================================================
   PAGINA INTERNA — SUB HERO
   ========================================================= */

.subhero {
  height: auto;
  min-height: 480px;

  position: relative;

  display: flex;
  align-items: flex-end;

  color: #fff;

  overflow: hidden;
}

.subhero-bg {
  position: absolute;
  inset: 0;

  background:
    url("https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=1800&q=80")
    center 25%/cover;
}

.subhero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(5,4,4,.35) 0%,
      rgba(5,4,4,.86) 100%
    );
}

.subhero-content {
  position: relative;
  z-index: 2;

  padding: 0 22px 40px;
}

.subhero-content .eyebrow {
  color: #efb8b7;
}

.subhero-content h1 {
  font:
    500 clamp(52px, 7vw, 96px)/.95
    "Cormorant Garamond";

  margin: 0 0 14px;
}

.subhero-content h1 em {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  color: #efb8b7;
}

.subhero-content p {
  max-width: 560px;

  font-size: 16px;
  line-height: 1.7;

  color: #eee;
}

.breadcrumb {
  position: relative;
  z-index: 2;

  margin: 90px 22px 0;

  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: #d9c9c6;
}

.breadcrumb a {
  color: #efb8b7;
}

/* =========================================================
   METODO
   ========================================================= */

.method {
  background: #fff;
}

.method-inner {
  max-width: 820px;

  margin: auto;

  text-align: center;
}

.method-inner p {
  font-size: 16px;
  line-height: 1.85;

  color: #4d4441;

  margin: 0 0 22px;
}

.method-inner p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   PERCORSO / LIVELLI
   ========================================================= */

.levels {
  background: #f7efec;
}

.levels-list {
  max-width: 900px;

  margin: 0 auto;

  border-top: 1px solid #ded4d2;
}

.level-row {
  display: grid;

  grid-template-columns: 40px 1fr;

  gap: 26px;

  align-items: start;

  padding: 30px 15px;

  border-bottom: 1px solid #ded4d2;
}

.level-row .level-num {
  font:
    500 34px
    "Cormorant Garamond";

  color: #cba1a0;
}

.level-row h3 {
  font:
    600 26px
    "Cormorant Garamond";

  margin: 0 0 4px;
}

.level-row .level-age {
  font-size: 11px;
  letter-spacing: .5px;
  text-transform: uppercase;

  color: #9d7777;
}

.level-row p {
  grid-column: 1/-1;

  margin: 0;

  font-size: 13.5px;
  line-height: 1.7;

  color: #706462;
}

/* =========================================================
   CORPO DOCENTE
   ========================================================= */

.team {
  background: #fff;
}

.team-grid {
  display: grid;

  grid-template-columns: 1fr;

  gap: 20px;

  max-width: 1150px;

  margin: auto;
}

.team-card {
  background: #f7efec;

  text-align: center;

  padding: 0 0 28px;

  overflow: hidden;
}

.team-photo {
  height: 500px;

  background:
    #ead9d5
    center/cover;
}

.t1 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787171129/sc_c7yph0.jpg");
}

.t2 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787171128/fp_nqpys1.jpg");
}

.t3 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787171128/danie_akck8d.jpg");
}
.t4 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787171129/sl_xwbduk.jpg");
}
.t5 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787171747/diego_xsbr0f.jpg");
}
.t6 {
  background-image:
    url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787171584/miriam_sjd4g0.jpg");
}

.team-card h3 {
  font:
    600 24px
    "Cormorant Garamond";

  margin: 22px 0 2px;
}

.team-card span {
  display: block;

  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: #9d7777;

  margin-bottom: 12px;
}

.team-card p {
  max-width: 260px;

  margin: 0 auto;

  font-size: 12.5px;
  line-height: 1.7;

  color: #766b69;

  position: relative;

  max-height: 5.1em; /* circa 3 righe, con "continua a leggere" */
  overflow: hidden;

  transition: max-height 0.5s ease;
}

/* sfumatura in fondo al testo troncato */
.team-card p::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    #fff
  );
  pointer-events: none;
}

.team-card.expanded p {
  max-height: 1000px;
}

.team-card.expanded p::after {
  display: none;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #171516;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.read-more:hover {
  opacity: 0.65;
}

.read-more .arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.team-card.expanded .read-more .arrow {
  transform: rotate(180deg);
}

/* =========================================================
   AMMISSIONI
   ========================================================= */

.admissions {
  background: #191616;

  color: #fff;
}

.admissions-inner {
  display: grid;

  grid-template-columns: 1fr;

  gap: 34px;

  max-width: 1150px;

  margin: auto;
}

.admissions-copy p {
  color: #d4cdcc;

  line-height: 1.8;

  margin: 0 0 26px;
}

.admissions-list {
  list-style: none;

  margin: 0;
  padding: 0;
}

.admissions-list li {
  display: flex;

  justify-content: space-between;
  align-items: center;

  padding: 16px 0;

  border-bottom: 1px solid rgba(255,255,255,.12);

  font-size: 13px;
}

.admissions-list li b {
  font:
    500 17px
    "Cormorant Garamond";

  color: #efb8b7;

  font-weight: 600;
}

.admissions-note {
  margin-top: 26px !important;

  font-size: 11px !important;
  color: #a99391 !important;
}

/* =========================================================
   WORKSHOP (pagina Formazione)
   ========================================================= */

.workshop {
  background: #f7efec;
}

.workshop-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 10px;

  margin: 0 auto 45px;
  padding: 0 12px;
}

.workshop-tab-btn {
  border: 1px solid #d6c0bc;
  background: transparent;

  color: #756a68;

  padding: 11px 24px;

  font: 700 11px "DM Sans";
  text-transform: uppercase;
  letter-spacing: .8px;

  border-radius: 3px;

  cursor: pointer;

  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease;
}

.workshop-tab-btn.active {
  background: #efb8b7;
  border-color: #efb8b7;
  color: #241c1d;
}

.workshop-panel {
  display: none;
}

.workshop-panel.active {
  display: block;
}

.event-card.is-past {
  opacity: .7;
}

.event-card.is-past .event-image {
  filter: grayscale(65%);
}

.workshop-status {
  position: absolute;

  top: 14px;
  right: 14px;
  z-index: 2;

  padding: 6px 12px;

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;

  color: #fff;

  background: #9d7777;
}

.event-card.is-past .workshop-status {
  background: #4d4441;
}

.workshop-note {
  text-align: center;

  color: #6b5f5c;

  font-size: 10px;

  margin-top: 24px;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq {
  background: #fff;
}

.faq-list {
  max-width: 780px;

  margin: 0 auto;

  border-top: 1px solid #ded4d2;
}

.faq-item {
  border-bottom: 1px solid #ded4d2;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 22px 4px;

  background: none;
  border: 0;

  text-align: left;

  font: 600 16px "Cormorant Garamond";
  font-size: 19px;
  color: #171516;

  cursor: pointer;
}

.faq-arrow {
  flex-shrink: 0;

  margin-left: 16px;

  font-size: 20px;
  font-weight: 400;

  color: #9d7777;

  transition: transform .3s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;

  transition: max-height .35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  margin: 0;
  padding: 0 4px 22px;

  font-size: 13.5px;
  line-height: 1.7;

  color: #706462;
}

/* =========================================================
   COOKIE BANNER
   ========================================================= */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;

  display: none;
  flex-direction: column;

  gap: 14px;

  padding: 18px 22px;

  background: #191616;
  color: #eee;

  box-shadow: 0 -10px 30px rgba(0,0,0,.25);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #d4cdcc;
}

.cookie-banner a {
  color: #efb8b7;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner-actions button {
  flex: 1;
  border: 1px solid #efb8b7;
  background: transparent;
  color: #eee;
  padding: 12px 16px;
  font: 700 11px "DM Sans";
  text-transform: uppercase;
  letter-spacing: .8px;
  cursor: pointer;
  border-radius: 3px;
  transition: background .25s ease, color .25s ease;
}

.cookie-banner-actions button.accept {
  background: #efb8b7;
  color: #241c1d;
}

.cookie-banner-actions button:hover {
  opacity: .85;
}

@media(min-width: 640px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 5vw;
  }

  .cookie-banner p {
    max-width: 640px;
  }

  .cookie-banner-actions {
    flex-shrink: 0;
  }

  .cookie-banner-actions button {
    flex: none;
  }
}

/* =========================================================================
   TABLET — dai 481px in su, superamento del layout "piccolo"
   ========================================================================= */

@media(min-width: 481px) {

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

  .course-image {
    height: 230px;
  }

  .hero h1 {
    font-size: 78px;
  }

  .script {
    font-size: 54px;
  }

  .split-photo {
    min-height: 430px;
  }

  .schedule-row {
    grid-template-columns: 1.5fr .8fr 1fr;
  }

  .schedule-row strong {
    display: block;
  }

  .final-content h2 {
    font-size: 62px;
  }
}

/* =========================================================================
   DESKTOP — dagli 851px in su
   ========================================================================= */

@media(min-width: 851px) {

  /* HEADER */
  .header {
    height: auto;
    min-height: 86px;
    padding: 14px 5vw;
  }

  .header.scrolled {
    min-height: 72px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);

    backdrop-filter: blur(14px);
  }

  .brand {
    width: 145px;
    height: 70px;
  }

  .brand img {
    width: 145px;
    max-height: 68px;
  }

  .menu-toggle {
    display: none;
  }

  /* NAV */
  .nav {
    display: flex;

    position: static;

    width: auto;

    padding: 0;

    background: transparent;
    color: inherit;

    flex-direction: row;
    align-items: flex-start;

    gap: 28px;

    box-shadow: none;
  }

  .nav a {
    width: auto;

    padding: 0;
  }

  .nav a:not(.nav-cta) {
    padding-top: 9px;
  }

  .nav a.active {
    padding-bottom: 8px;
  }

  .nav-end {
    flex-direction: column;
    align-items: flex-end;

    gap: 8px;

    width: auto;
  }

  .nav-social {
    justify-content: flex-end;

    margin-top: 0;
    padding-top: 0;

    border-top: 0;
  }

  .nav-cta {
    width: auto;
    text-align: left;

    padding: 13px 20px !important;
  }

  /* HERO */
  .hero {
    min-height: 700px;
  }

  .hero-content {
    margin: 0;
    margin-left: 8vw;

    max-width: 610px;
  }

  .hero h1 {
    font-size: clamp(72px, 9vw, 132px);
  }

  .script {
    font-size: clamp(34px, 4vw, 54px);
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .btn {
    width: auto;
  }

  .scroll {
    display: flex;

    position: absolute;

    bottom: 28px;
    left: 50%;

    font-size: 9px;
    letter-spacing: 3px;

    flex-direction: column;

    align-items: center;

    gap: 10px;
  }

  .scroll span {
    width: 1px;
    height: 40px;

    background: #fff;
  }

  /* SEZIONI */
  .section {
    padding: 105px 5vw;
  }

  /* CORSI */
  .course-grid {
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
  }

  .course-image {
    height: 310px;
  }

  .course-body {
    padding: 23px 25px;
  }

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

  .course-body a {
    position: absolute;

    right: 25px;
    bottom: 27px;

    margin-top: 0;
  }

  /* LA SCUOLA */
  .split-section {
    grid-template-columns: 1fr 1fr;

    min-height: 690px;
  }

  .split-copy {
    padding: 100px 9vw;
  }

  .stats {
    gap: 45px;
  }

  .stats strong {
    font-size: 38px;
  }

  /* TRIAL */
  .trial {
    padding: 100px 8vw;

    background-position: right center;
  }

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

  /* ORARI */
  .schedule-row {
    grid-template-columns: 2fr 1fr 1.2fr 1fr;

    gap: 0;
  }

  .schedule-row strong {
    display: block;
  }

  .schedule-row time {
    display: block;
  }

  /* EVENTI / RECENSIONI */
  .event-grid {
    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
  }

  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-grid blockquote {
    padding: 25px 40px;

    border-right: 1px solid #d0b9b5;
    border-bottom: 0;
  }

  .quote-grid blockquote:last-child {
    border: 0;
  }

  /* CTA FINALE */
  .final-cta {
    height: 500px;
  }

  .final-content {
    padding: 0;
  }

  .final-content h2 {
    font-size: 80px;
  }

  /* FOOTER */
  footer {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    padding: 55px 7vw 25px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand img {
    width: 170px;

    max-height: 145px;
  }

  /* PAGINA INTERNA */
  .subhero {
    height: 62vh;
    min-height: 420px;
  }

  .subhero-content {
    padding: 0 8vw 60px;
  }

  .breadcrumb {
    margin: 110px 8vw 0;
  }

  .levels-list {
    max-width: 900px;
  }

  .level-row {
    grid-template-columns: 70px 1fr 1.6fr;
  }

  .level-row p {
    grid-column: auto;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-card p {
    max-height: none;
    overflow: visible;
  }

  .team-card p::after {
    display: none;
  }

  .read-more {
    display: none;
  }

  .admissions-inner {
    grid-template-columns: 1fr 1fr;

    gap: 60px;
  }

  .workshop-tabs {
    margin: -14px auto 45px;
  }
}

/* =========================================================================
   V2 — SITO MULTIPAGINA (mobile first)
   Tutto quello che segue è stato aggiunto: le regole sopra restano invariate,
   tranne dove indicato con "FIX".
   ========================================================================= */

/* ---------- utilità e accessibilità ---------- */

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #9d7777;
  outline-offset: 3px;
}

/* FIX: senza JS i blocchi .reveal restavano invisibili */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* le immagini delle card corso ora sono link */
a.course-image { display: block; }

/* FIX: breadcrumb e contenuto dello subhero erano affiancati (flex in riga);
   ora breadcrumb in alto e titolo in basso */
.subhero {
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.subhero.compact { min-height: 340px; }

.text-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---------- immagini hero delle pagine corso ---------- */

.subhero-bg.bg-1 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/propedeutica_smrync.jpg"); }
.subhero-bg.bg-2 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/pre_danza_o5iwla.jpg"); }
.subhero-bg.bg-3 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/modern_mytk1z.jpg"); }
.subhero-bg.bg-4 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169254/contemporaneo_hsa0nq.jpg"); }
.subhero-bg.bg-5 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169569/hiphop_kl9upe.jpg"); }
.subhero-bg.bg-6 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169569/classico_xbv9ii.jpg"); }
.subhero-bg.bg-7 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169786/potenziamento_gjhbed.jpg"); }

/* ---------- IL NASTRINO — elenco corsi che scorre ---------- */

.ribbon-band {
  position: relative;
  padding: 36px 0;
  overflow: hidden;
  background: #f7efec;
}

/* nastro scuro dietro, incrociato: solo decorazione */
.ribbon-back {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 44px;
  margin-top: -22px;
  background: #191616;
  transform: rotate(1.8deg);
}

.ribbon-front {
  position: relative;
  left: -3%;
  width: 106%;
  height: 56px;

  background: #efb8b7;
  transform: rotate(-1.4deg);
  box-shadow: 0 8px 18px rgba(25, 22, 22, .14);

  /* senza JS (o con movimento ridotto) è una fascia scorrevole a mano */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ribbon-front::-webkit-scrollbar { display: none; }

.ribbon-front.is-running { overflow: hidden; }

.ribbon-track {
  display: flex;
  align-items: center;

  width: max-content;
  height: 100%;

  margin: 0;
  padding: 0 0 0 4vw;

  list-style: none;
}

.ribbon-front.is-running .ribbon-track {
  padding-left: 0;
  animation: ribbon-run var(--ribbon-dur, 40s) linear infinite;
  will-change: transform;
}

@keyframes ribbon-run {
  to { transform: translateX(var(--ribbon-shift, -50%)); }
}

.ribbon-track li {
  flex: none;
  display: flex;
  align-items: center;
}

.ribbon-track a {
  display: block;
  padding: 12px 2px;

  font: 600 25px/1 "Cormorant Garamond", serif;
  letter-spacing: .4px;
  color: #241c1d;
  white-space: nowrap;
}

.ribbon-track a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.ribbon-track a:focus-visible {
  outline-color: #241c1d;
  outline-offset: -2px;
}

/* tra un corso e l'altro la scuola "conta": 5,6,7,8 */
.ribbon-track li::after {
  content: "5,6,7,8";
  content: "5,6,7,8" / "";

  padding: 0 20px;

  font: 400 27px/1 "Allura", cursive;
  color: #fff;
  white-space: nowrap;
}

/* pausa: mouse sopra, tastiera, dito appoggiato */
@media (hover: hover) {
  .ribbon-front:hover .ribbon-track { animation-play-state: paused; }
  .ribbon-track a:hover { text-decoration: underline; text-underline-offset: 6px; }
}

.ribbon-front:focus-within .ribbon-track,
.ribbon-front.is-held .ribbon-track {
  animation-play-state: paused;
}

@media (min-width: 851px) {
  .ribbon-band { padding: 52px 0; }

  .ribbon-front { height: 68px; left: -2%; width: 104%; }
  .ribbon-back  { height: 52px; margin-top: -26px; }

  .ribbon-track a { font-size: 31px; }
  .ribbon-track li::after { font-size: 32px; padding: 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-front.is-running .ribbon-track { animation: none; }
}

/* ---------- pagine corso ---------- */

.facts {
  background: #fff;
  border-bottom: 1px solid #ded4d2;
}

.facts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;

  max-width: 1000px;
  margin: 0 auto;

  background: #ded4d2;   /* le linee tra le celle */
}

.facts-list > div {
  padding: 20px 22px;
  background: #fff;
}

.facts-list dt {
  font-size: 12px;
  color: #9d7777;
  margin: 0 0 4px;
}

.facts-list dd {
  margin: 0;
  font: 600 24px/1.15 "Cormorant Garamond", serif;
}

.prose-wrap { padding-bottom: 40px; }

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose .lead {
  font: 500 clamp(22px, 5vw, 29px)/1.45 "Cormorant Garamond", serif;
  color: #171516;
  margin: 0 0 8px;
}

.prose section { margin-top: 52px; }

.prose h2 {
  font: 500 clamp(32px, 6vw, 46px)/1.05 "Cormorant Garamond", serif;
  margin: 0 0 18px;
}

.prose p {
  font-size: 16px;
  line-height: 1.85;
  color: #4d4441;
  margin: 0 0 20px;
}

.prose a { text-decoration: underline; text-underline-offset: 4px; }

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ded4d2;
}

.check-list li {
  position: relative;
  padding: 15px 0 15px 28px;
  border-bottom: 1px solid #ded4d2;
  font-size: 15px;
  color: #4d4441;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 23px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #efb8b7;
}

/* i passaggi sono una vera sequenza, quindi numerati */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ded4d2;
}

.steps li {
  counter-increment: step;

  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: baseline;

  padding: 18px 0;
  border-bottom: 1px solid #ded4d2;

  font-size: 15px;
  line-height: 1.6;
  color: #4d4441;
}

.steps li::before {
  content: counter(step);
  font: 500 32px/1 "Cormorant Garamond", serif;
  color: #cba1a0;
}

.cta-band {
  padding: 68px 22px;
  text-align: center;
  color: #fff;
  background: #191616;
}

.cta-band h2 {
  font: 500 clamp(40px, 8vw, 62px)/1 "Cormorant Garamond", serif;
  margin: 0 0 10px;
}

.cta-band h2 em {
  font-family: "Allura", cursive;
  font-style: normal;
  font-weight: 400;
  color: #efb8b7;
}

.cta-band p {
  max-width: 460px;
  margin: 0 auto 26px;
  line-height: 1.7;
  color: #d4cdcc;
}

.cta-band .btn { max-width: 420px; }

/* ---------- elenco corsi (pagina Corsi) ---------- */

.course-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid #ded4d2;
}

.course-row {
  display: grid;
  grid-template-columns: 64px 1fr 20px;
  gap: 16px;
  align-items: center;

  padding: 24px 6px;
  border-bottom: 1px solid #ded4d2;

  transition: background .25s ease;
}

.course-row:hover { background: rgba(239, 184, 183, .18); }

.course-row .age {
  font: 500 30px/1 "Cormorant Garamond", serif;
  color: #cba1a0;
}

.course-row .age small {
  display: block;
  margin-top: 4px;
  font: 500 11px "DM Sans", sans-serif;
  color: #9d7777;
}

.course-row h3 {
  font: 600 26px/1.1 "Cormorant Garamond", serif;
  margin: 0 0 4px;
}

.course-row p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #706462;
}

.course-row .go { font-size: 18px; color: #9d7777; }

@media (min-width: 851px) {
  .course-row { grid-template-columns: 96px 1fr 24px; padding: 28px 12px; }
  .course-row .age { font-size: 38px; }
}

/* ---------- contatti ---------- */

.contact-grid {
  display: grid;
  gap: 1px;

  max-width: 1000px;
  margin: 0 auto 40px;

  background: #ded4d2;
  border: 1px solid #ded4d2;
}

.contact-grid > div { padding: 24px 22px; background: #fff; }

.contact-grid small {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0;
  color: #9d7777;
}

.contact-grid p {
  margin: 0;
  font: 600 24px/1.3 "Cormorant Garamond", serif;
}

.contact-grid a { text-decoration: underline; text-underline-offset: 4px; }

.map-frame {
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  background: #ead9d5;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-open {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 481px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 851px) {
  .map-frame { aspect-ratio: 16 / 9; }
}

/* ---------- pagina prova gratuita ---------- */

.trial h1 {
  font: 500 clamp(50px, 9vw, 76px)/.95 "Cormorant Garamond", serif;
  margin: 0 0 18px;
}

.trial h1 em {
  font-family: "Allura", cursive;
  font-style: normal;
  font-weight: 400;
  color: #bd8d8c;
}

.trial.trial-page { padding-top: 120px; }

@media (min-width: 851px) {
  .trial.trial-page { padding-top: 150px; }
}

/* ---------- footer: link ai corsi (interlinking) ---------- */

.footer-courses { grid-column: 1 / -1; }

.footer-courses ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.footer-courses a {
  display: inline-block;
  padding: 8px 0;
  font-size: 12px;
  color: #d0c8c6;
}

.footer-courses a:hover { color: #efb8b7; }

/* ---------- desktop: subhero compatto ---------- */

@media (min-width: 851px) {
  .subhero.compact { height: auto; min-height: 400px; }
}


/* ---------- corsi Tonificazione e Musical ----------
   TODO: immagini provvisorie (riuso di foto esistenti). Sostituire con foto dei corsi. */

.img-8 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169786/potenziamento_gjhbed.jpg"); }
.img-9 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787141318/GRUPPO_SAGGIO_2_o78vxm.jpg"); }
.subhero-bg.bg-8 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787169786/potenziamento_gjhbed.jpg"); }
.subhero-bg.bg-9 { background-image: url("https://res.cloudinary.com/dwgmdik3b/image/upload/v1787141318/GRUPPO_SAGGIO_2_o78vxm.jpg"); }

/* ---------- pagina Insegnanti: link ai corsi ---------- */

.team-card .team-links {
  max-width: none;
  max-height: none;
  margin: 14px 12px 0;
  overflow: visible;

  font-size: 12.5px;
  line-height: 1.6;
}

.team-card .team-links::after { display: none; }

.team-card .team-links a {
  display: inline-block;
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- menu desktop con più voci: se non c'è spazio va a capo, non esce dallo schermo ---------- */

@media (min-width: 851px) and (max-width: 1199px) {
  .nav { flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
  .nav a { white-space: nowrap; }
}
