/* ==========================================================================
   PMA – Parole & Musica · Scuola di Musica · Milano
   Foglio di stile principale
   ========================================================================== */

:root {
  --orange: #F39A2E;
  --orange-dark: #D97F16;
  --orange-soft: #FDEBD2;
  --teal: #1F7A8C;
  --teal-soft: #DDEFF3;
  --ink: #17161A;
  --ink-2: #2B2A30;
  --muted: #66636C;
  --line: #E7E2DA;
  --paper: #FBF8F3;
  --paper-2: #F3EEE6;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(23, 22, 26, .08);
  --shadow-lg: 0 24px 60px rgba(23, 22, 26, .16);
  --font-head: "Syne", "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.kicker { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .8rem; }
.center { text-align: center; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .kicker { color: var(--orange); }
.section--dark .muted { color: #B9B5BE; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none !important; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 0 8px 20px rgba(243, 154, 46, .35); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); }
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; min-height: 40px; }
.btn svg { width: 18px; height: 18px; }

/* --- Header ------------------------------------------------------------ */
.topbar { background: var(--ink); color: #D8D4DC; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; }
.topbar span + span { margin-left: 1.2rem; }
.topbar .hide-sm { display: none; }
@media (min-width: 720px) { .topbar .hide-sm { display: inline; } }

.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; align-items: center; gap: .8rem; }
.brand img { height: 44px; width: auto; }
.nav { display: none; align-items: center; gap: .2rem; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--orange-soft); text-decoration: none; color: var(--ink); }
.header-cta { display: none; }
.burger { display: inline-block; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.burger__lines { display: block; width: 22px; height: 16px; margin: 0 auto; position: relative; }
.burger__lines i { display: block; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
.burger__lines i:nth-child(1) { top: 0; }
.burger__lines i:nth-child(2) { top: 7px; }
.burger__lines i:nth-child(3) { top: 14px; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.header .mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.header .mobile-nav.is-open { display: block; }
.header .mobile-nav .container { display: block; min-height: 0; }
.header .mobile-nav a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.header .mobile-nav a[aria-current="page"] { color: var(--orange-dark); }
.header .mobile-nav .btn { margin: 1rem 0; display: inline-flex; color: var(--ink); border-bottom: 0; }
@media (min-width: 1020px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .burger, .mobile-nav { display: none !important; }
}

/* --- Hero -------------------------------------------------------------- */
.hero { position: relative; color: #fff; min-height: min(88vh, 780px); display: grid; align-items: end; overflow: hidden; background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .85; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,22,26,.25) 0%, rgba(23,22,26,.55) 55%, rgba(23,22,26,.95) 100%); }
.hero__content { position: relative; padding: clamp(5rem, 12vw, 8rem) 0 clamp(3rem, 6vw, 5rem); max-width: 780px; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .4rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem; backdrop-filter: blur(6px); }
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(243,154,46,.3); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero p { font-size: 1.15rem; max-width: 600px; color: #E9E5EC; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.2rem; font-size: .9rem; color: #CFC9D4; }
.hero__meta strong { color: #fff; display: block; font-family: var(--font-head); font-size: 1.4rem; }

/* Page hero (interne) */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,22,26,.95), rgba(23,22,26,.5)); }
.page-hero .container { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.page-hero__inner { max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #E1DCE6; }
.breadcrumb { font-size: .85rem; color: #B9B5BE; margin-bottom: 1rem; }
.breadcrumb a { color: #fff; }

/* --- Grids & cards ------------------------------------------------------ */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .6rem; }

.course-card { position: relative; display: flex; flex-direction: column; gap: .6rem; color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.course-card__icon { width: 56px; height: 56px; border-radius: 14px; background: var(--orange-soft); display: grid; place-items: center; color: var(--orange-dark); }
.course-card__icon svg { width: 30px; height: 30px; }
.course-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.course-card .link { margin-top: auto; font-weight: 700; color: var(--orange-dark); font-size: .92rem; }
.course-card--kids .course-card__icon { background: var(--teal-soft); color: var(--teal); }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--orange); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin: .2rem 0 .3rem; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--rev > :first-child { order: 2; } }
.split__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__img--wide { aspect-ratio: 4 / 3; }

.audience { display: grid; gap: 1.4rem; }
@media (min-width: 800px) { .audience { grid-template-columns: 1fr 1fr; } }
.audience__card { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; min-height: 380px; display: flex; align-items: flex-end; padding: 2rem; background: var(--ink); }
.audience__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.audience__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(23,22,26,.95)); }
.audience__card > div { position: relative; }
.audience__card h3 { color: #fff; font-size: 1.6rem; }
.audience__card p { color: #DDD8E2; }

.teacher { text-align: center; }
.teacher__photo { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 1rem; }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.9); transition: transform .3s; }
.teacher:hover .teacher__photo img { transform: scale(1.04); }
.teacher__initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--orange-dark); background: linear-gradient(135deg, var(--orange-soft), #fff); }
.teacher h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.teacher .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; }
.teacher .bio { font-size: .92rem; color: var(--muted); margin: .8rem 0 0; }
a.teacher { display: block; color: inherit; }
a.teacher:hover { text-decoration: none; }
a.teacher h3 { transition: color .2s; }
a.teacher:hover h3 { color: var(--orange-dark); }
.teacher__more { display: inline-block; margin-top: .7rem; font-size: .85rem; font-weight: 700; color: var(--orange-dark); }
/* Pagina docente */
.teacher-page__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--paper-2); }
.teacher-page__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.92); }
.teacher-page__body p { margin-bottom: 1rem; }
.teacher-page__body .tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.teacher-page__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.teacher-courses { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.teacher-course { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: inherit; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.teacher-course:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--orange); }
.teacher-course__icon { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-soft); color: var(--orange-dark); }
.teacher-course__icon svg { width: 24px; height: 24px; }
.teacher-course > span:nth-child(2) { flex: 1; }
.teacher-course strong { display: block; }
.teacher-course small { display: block; color: var(--muted); font-size: .85rem; }
.teacher-course > svg { width: 20px; height: 20px; color: var(--orange-dark); flex: 0 0 20px; }
a.teacher-mini { color: inherit; }
a.teacher-mini:hover { text-decoration: none; }
a.teacher-mini:hover strong { color: var(--orange-dark); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--orange-soft); color: var(--orange-dark); padding: .25rem .6rem; border-radius: 999px; }
.tag--teal { background: var(--teal-soft); color: var(--teal); }
.tag--dark { background: var(--ink); color: #fff; }

.quote { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.quote__stars { color: var(--orange); letter-spacing: .1em; font-size: 1rem; }
.quote p { font-size: 1.02rem; margin: 0; flex: 1; }
.quote footer { font-size: .9rem; color: var(--muted); }
.quote footer strong { color: var(--ink); display: block; }

.steps { counter-reset: step; display: grid; gap: 1.4rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem 1.6rem; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--orange); line-height: 1; display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

.event { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; align-items: start; }
.event__date { background: var(--ink); color: #fff; border-radius: 12px; text-align: center; padding: .6rem .3rem; font-family: var(--font-head); }
.event__date strong { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--orange); }
.event__date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; display: block; line-height: 1.2; margin-top: .2rem; }
.event h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.event p { margin: 0; color: var(--muted); font-size: .95rem; }
.event .meta { font-size: .85rem; color: var(--ink-2); font-weight: 600; margin-top: .5rem; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--orange); line-height: 1.1; }
.stat span { font-size: .9rem; color: #C9C4CE; }

.cta-band { background: var(--orange); color: var(--ink); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; max-width: 560px; }

/* --- Course detail ------------------------------------------------------ */
.course-layout { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .course-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; align-items: start; } }
.course-body h2 { font-size: 1.7rem; margin-top: 2rem; }
.course-body h2:first-child { margin-top: 0; }
.checklist { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 20px; height: 20px; border-radius: 50%; background-color: var(--orange-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D97F16' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 1.2rem; }
.infobox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.infobox h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.infobox dl { margin: 0; display: grid; gap: .7rem; }
.infobox dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.infobox dd { margin: 0; font-weight: 600; }
.infobox .btn { width: 100%; justify-content: center; margin-top: 1.2rem; }
.teacher-mini { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.teacher-mini:first-of-type { border-top: 0; }
.teacher-mini img, .teacher-mini .teacher__initials { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; font-size: 1rem; flex: 0 0 48px; }
.teacher-mini strong { display: block; font-size: .95rem; }
.teacher-mini span { font-size: .8rem; color: var(--muted); }

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: .35rem; }
.required::after { content: " *"; color: var(--orange-dark); }
input, select, textarea {
  width: 100%; font: inherit; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); min-height: 48px;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 4px rgba(243,154,46,.2); }
textarea { min-height: 120px; resize: vertical; }
.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; font-weight: 500; }
.checkbox input { width: 20px; height: 20px; min-height: 0; margin-top: .2rem; flex: 0 0 auto; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; background: var(--teal-soft); border: 1px solid var(--teal); color: #12515c; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); }
.form-success.is-visible { display: block; }

.contact-card { display: grid; gap: 1.2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--orange-dark); margin-top: .15rem; }
.contact-item strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.contact-item a { color: var(--ink); font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: .8rem; max-width: 860px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1.4rem; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; padding: 1.1rem 2rem 1.1rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange-dark); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--ink-2); }

/* --- Gallery -------------------------------------------------------------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } .gallery > :first-child { grid-column: span 2; grid-row: span 2; } }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.05); }

/* --- Prose ------------------------------------------------------------- */
.prose { max-width: 800px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul li { margin-bottom: .4rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; border-left: 2px solid var(--orange); }
.timeline li { padding-left: 1.5rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.timeline strong { font-family: var(--font-head); display: block; color: var(--orange-dark); font-size: .9rem; letter-spacing: .05em; }
.doc-list { list-style: none; padding: 0; display: grid; gap: .8rem; }
.doc-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.notice { background: var(--orange-soft); border-left: 4px solid var(--orange); padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-size: .95rem; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: #C9C4CE; padding: 4rem 0 2rem; font-size: .93rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { color: #E6E2EA; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__brand img { height: 42px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 1rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .83rem; color: #9B96A1; }
.footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer__5x { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-top: 1.4rem; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); background: rgba(255,255,255,.05); font-size: .88rem; color: #E6E2EA; transition: border-color .2s, background .2s; }
.footer__5x:hover { text-decoration: none; border-color: var(--orange); background: rgba(243,154,46,.1); }
.footer__5x-label { font-weight: 700; color: var(--orange); }
.footer__5x-cf { letter-spacing: .04em; }
.footer__5x-more { color: #9B96A1; font-size: .82rem; }
/* 5x1000 in Chi siamo */
.cinque { display: grid; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow); }
@media (min-width: 900px) { .cinque { grid-template-columns: 1.5fr 1fr; gap: 3rem; } }
.cinque h2 { margin-top: 0; }
.cinque__steps { padding-left: 1.3rem; display: grid; gap: .5rem; margin: 1.2rem 0; }
.cinque__box { text-align: center; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; }
.cinque__box span { display: block; font-family: var(--font-head); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .6rem; }
.cinque__box strong { display: block; font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: .06em; line-height: 1.1; }
.cinque__box small { display: block; margin-top: .8rem; color: #C9C4CE; font-size: .85rem; }
.footer__legal a { color: #E6E2EA; white-space: nowrap; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--orange); color: var(--ink); }
.social svg { width: 18px; height: 18px; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ==========================================================================
   Ottimizzazioni mobile
   ========================================================================== */
/* Barra azioni fissa in basso (solo sotto i 1020px) */
.action-bar { display: none; }
@media (max-width: 1019px) {
  body { padding-bottom: 76px; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 52px 52px; gap: .5rem; padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(251, 248, 243, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(23,22,26,.08); }
  .action-bar .btn { min-height: 52px; justify-content: center; padding: .6rem .9rem; font-size: .95rem; }
  .action-bar .btn--icon { padding: 0; width: 52px; }
  .action-bar .btn--icon svg { width: 22px; height: 22px; }
  .action-bar .btn--wa { background: #25D366; color: #fff; }
  .wa-float { display: none; }
}
/* Header e topbar compatti */
@media (max-width: 1019px) {
  .header .container { min-height: 64px; }
  .brand img { height: 36px; }
  .topbar { font-size: .8rem; }
  .topbar .container { min-height: 34px; }
}
@media (max-width: 480px) {
  .topbar .container > div:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
/* Hero */
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .hero__content { padding: 3.5rem 0 2.5rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .hero p { font-size: 1.02rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-top: 1.6rem; font-size: .82rem; }
  .hero__meta strong { font-size: 1.2rem; }
  .page-hero .container { padding: 2.5rem 0 2.2rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .page-hero .lead { font-size: 1.02rem; }
  .section-head { margin-bottom: 1.6rem; }
  h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .lead { font-size: 1.05rem; }
}
/* Griglia corsi: due colonne compatte */
@media (max-width: 700px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .grid--3 { gap: 1rem; }
  .course-card { padding: 1.1rem 1rem 1rem; gap: .4rem; }
  .course-card__icon { width: 44px; height: 44px; border-radius: 11px; }
  .course-card__icon svg { width: 24px; height: 24px; }
  .course-card h3 { font-size: 1rem; margin-top: .3rem; line-height: 1.2; }
  .course-card p { display: none; }
  .course-card .link { font-size: .82rem; margin-top: .2rem; }
  /* Sull'indice corsi la descrizione resta visibile a colonna singola */
  .courses-index .grid--3 { grid-template-columns: 1fr; }
  .courses-index .course-card { padding: 1.4rem; }
  .courses-index .course-card p { display: block; }
  .teacher h3 { font-size: .98rem; }
  .teacher .tag { font-size: .66rem; padding: .2rem .45rem; }
  .teacher .bio { font-size: .86rem; }
  .audience__card { min-height: 260px; padding: 1.4rem; }
  .audience__card h3 { font-size: 1.3rem; }
  .audience__card p { font-size: .95rem; }
  .split__img { aspect-ratio: 4 / 3; }
  .card { padding: 1.3rem; }
  .quote { padding: 1.3rem; }
  .step { padding: 1.5rem 1.3rem 1.3rem; }
  .map iframe { height: 260px; }
  .cta-band .container { padding: 2.2rem 0; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .cta-band > .container > div:last-child { width: 100%; }
  .infobox { padding: 1.3rem; }
  .gallery { gap: .6rem; }
  .footer { padding: 3rem 0 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer__brand, .footer__contacts { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: .5rem; }
}
@media (max-width: 380px) {
  .grid--4 { grid-template-columns: 1fr; }
}


/* --- Open Day: banner e prenotazione ---------------------------------- */
.announce { background: var(--orange); color: var(--ink); max-height: 80px; overflow: hidden; transition: max-height .3s ease, opacity .3s ease; }
.announce.is-hidden { max-height: 0; opacity: 0; }
.header .announce .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .4rem 0; }
.announce__text { display: flex; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 600; min-width: 0; }
.announce__text strong { font-family: var(--font-head); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.announce__text span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.announce__short, .announce__btn-short { display: none; }
.announce .btn { flex: 0 0 auto; }
@media (max-width: 600px) {
  .header .announce .container { min-height: 44px; padding: .3rem 0; gap: .6rem; }
  .announce__long, .announce__btn-long { display: none; }
  .announce__short, .announce__btn-short { display: inline; }
  .announce__text { gap: .5rem; font-size: .82rem; }
  .announce__text strong { font-size: .8rem; letter-spacing: .04em; }
  .announce .btn { padding: .4rem .85rem; font-size: .8rem; min-height: 36px; }
}

.openday { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.openday::before { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(243,154,46,.35), transparent 65%); pointer-events: none; }
.openday .container { position: relative; display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
@media (min-width: 880px) { .openday .container { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.openday h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .6rem; }
.openday h2 em { font-style: normal; color: var(--orange); }
.openday p { color: #DDD8E2; max-width: 520px; }
.openday .kicker { color: var(--orange); }
.openday__facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.openday__facts li { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); padding: .45rem .85rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.openday__facts svg { width: 16px; height: 16px; color: var(--orange); }
.openday__card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-lg); }
.openday__card h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.openday__card .muted { font-size: .9rem; margin-bottom: 1rem; }
.openday__card p { color: var(--muted); }
.openday__days { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: .8rem; }
.openday__days label { position: relative; margin: 0; }
.openday__days input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.openday__days span { display: block; text-align: center; font-size: .8rem; font-weight: 700; padding: .55rem .3rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.openday__days input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.openday__days input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.openday__form .btn { width: 100%; justify-content: center; margin-top: .3rem; }
.openday__form .form-note { margin: .6rem 0 0; }
.openday__form input[type="text"], .openday__form input[type="email"] { margin-bottom: .6rem; }
.hp, .openday__form .hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.openday__done { display: none; text-align: center; padding: 1rem 0; }
.openday__done .check { width: 56px; height: 56px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; margin: 0 auto .8rem; }
.openday__done .check svg { width: 28px; height: 28px; }
.openday__error { display: none; color: #B3261E; font-size: .88rem; margin: .4rem 0 0; }

/* Finestra di prenotazione (dal banner) */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(23,22,26,.6); backdrop-filter: blur(4px); }
.modal.is-open { display: flex; }
.modal__box { position: relative; width: min(440px, 100%); max-height: calc(100vh - 2rem); overflow: auto; }
.modal__close { position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink); }
body.modal-open { overflow: hidden; }

/* ---- Banner cookie ------------------------------------------------------ */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 1rem; pointer-events: none; }
.cookie__inner { pointer-events: auto; max-width: 860px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cookie__inner p { margin: 0; flex: 1 1 320px; font-size: .95rem; line-height: 1.5; }
.cookie__inner a { color: var(--orange); text-decoration: underline; }
.cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }
.footer__legal .link-btn { text-decoration: none; }
.footer__legal .link-btn:hover { text-decoration: underline; }
.reviews-link { margin-top: 2rem; }
.center { text-align: center; }
@media (max-width: 760px) {
  .cookie { padding: .6rem; bottom: calc(52px + 1.2rem + env(safe-area-inset-bottom)); }
  .cookie__inner { padding: 1rem; }
  .cookie__actions { width: 100%; }
  .cookie__actions .btn { flex: 1; justify-content: center; }
}

/* Selettore lingua */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .38rem .6rem; margin-right: .6rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .74rem; letter-spacing: .1em; color: var(--ink); background: #fff; transition: border-color .2s, background .2s; }
.lang-switch:hover { text-decoration: none; border-color: var(--orange); background: var(--orange-soft); }
.lang-switch--mobile { display: none; width: max-content; margin: .4rem 0 .6rem; }
@media (max-width: 1019px) { .header .lang-switch:not(.lang-switch--mobile) { display: none; } .lang-switch--mobile { display: inline-flex; } }
