/*
Theme Name: Pavlova International
Theme URI: https://www.abcpavlova.it/
Author: Pavlova International Ballet School
Description: Tema WordPress leggero e proprietario per Pavlova International Ballet School. Senza page builder e dipendenze legacy.
Version: 1.3.0
Text Domain: pavlova-international
*/


/* =========================================================
   1. VARIABILI
   ========================================================= */

:root {
  --ink: #171615;
  --muted: #6d6862;
  --paper: #f7f3ec;
  --paper2: #eee7dc;
  --gold: #b18a4a;
  --line: #d9d0c3;
  --white: #fff;

  --max: 1180px;

  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, Arial, sans-serif;
}


/* =========================================================
   2. RESET E BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   3. ACCESSIBILITÀ
   ========================================================= */

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}


/* =========================================================
   4. TOP BAR
   ========================================================= */

.topbar {
  background: #151413;
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
}


/* =========================================================
   5. HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(247, 243, 236, .97);
  border-bottom: 1px solid var(--line);

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

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

  min-height: 78px;
  gap: 24px;
}


/* =========================================================
   6. BRAND / LOGO
   ========================================================= */

.brand {
  display: flex;
  flex-direction: column;

  min-width: 190px;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;

  letter-spacing: .12em;
}

.brand span {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: 10px;
  letter-spacing: .15em;
}


/* Supporto eventuale vecchia classe logo */

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

  gap: 13px;

  font-family: var(--serif);
  letter-spacing: .08em;
}

.logo img {
  width: 48px;
  height: 48px;

  object-fit: contain;
}

.logo strong {
  font-size: 18px;
  font-weight: 500;
}

.logo span {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-family: var(--sans);
  font-size: 10px;

  letter-spacing: .18em;
}


/* =========================================================
   7. MENU PRINCIPALE DESKTOP
   ========================================================= */

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;

  gap: 20px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.primary-nav li {
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;

  padding: 8px 0;

  font-size: 12px;
  line-height: 1.35;

  text-transform: uppercase;
  letter-spacing: .055em;

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

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--gold);
}


/* =========================================================
   8. PULSANTE AUDIZIONE HEADER
   ========================================================= */

.audition-btn {
  flex: 0 0 auto;

  border: 1px solid var(--ink);

  padding: 12px 18px;

  font-size: 11px;
  line-height: 1.3;

  text-transform: uppercase;
  letter-spacing: .08em;

  transition:
    background .2s ease,
    color .2s ease;
}

.audition-btn:hover {
  background: var(--ink);
  color: var(--white);
}


/* =========================================================
   9. PULSANTE MENU MOBILE
   ========================================================= */

.nav-toggle {
  display: none;

  margin-left: auto;

  border: 1px solid var(--ink);
  background: transparent;

  padding: 10px 14px;

  color: var(--ink);

  font: inherit;
  font-size: 11px;

  text-transform: uppercase;
  letter-spacing: .08em;

  cursor: pointer;
}


/* =========================================================
   10. PULSANTI GENERALI
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--ink);

  padding: 13px 20px;

  background: transparent;
  color: var(--ink);

  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: .1em;

  cursor: pointer;

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

.btn:hover {
  background: var(--ink);
  color: var(--white);
}

.btn.gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.btn.gold:hover {
  border-color: #8f6c38;
  background: #8f6c38;
}


/* =========================================================
   11. TIPOGRAFIA
   ========================================================= */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}

h1 {
  margin: 18px 0 22px;

  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  margin: 0 0 18px;

  font-size: clamp(32px, 4vw, 52px);
}

h3 {
  margin: 0 0 10px;

  font-size: 25px;
}

p {
  margin-top: 0;
}

.lead {
  max-width: 640px;

  color: #514c46;

  font-size: 19px;
}

.eyebrow,
.kicker {
  color: var(--gold);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .18em;
}


/* =========================================================
   12. HOMEPAGE HERO
   ========================================================= */

.hero {
  display: grid;

  grid-template-columns: 1.05fr .95fr;

  min-height: 650px;

  background: var(--paper2);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 90px 6vw 80px;
}

.hero-media {
  position: relative;

  min-height: 650px;

  overflow: hidden;

  background: #ddd;
}

.hero-media img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.hero-label {
  position: absolute;

  left: 24px;
  bottom: 24px;

  padding: 14px 18px;

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

  font-family: var(--serif);
  font-size: 14px;
}


/* =========================================================
   13. SEZIONI
   ========================================================= */

.section {
  padding: 90px 0;
}

.section.alt {
  background: #eee8de;
}

.section-head {
  max-width: 750px;

  margin-bottom: 42px;
}


/* =========================================================
   14. GRIGLIE
   ========================================================= */

.grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.grid-2 {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;
}


/* =========================================================
   15. CARD
   ========================================================= */

.card {
  padding: 27px;

  border: 1px solid var(--line);

  background: #fbf9f5;
}

.card.image {
  padding: 0;

  overflow: hidden;
}

.card.image img {
  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;
}

.card.image .pad {
  padding: 24px;
}

.card p {
  margin-top: 8px;

  color: var(--muted);
}

.course-age {
  color: var(--gold);

  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: .14em;
}


/* =========================================================
   16. CONTENUTI SPLIT
   ========================================================= */

.split {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  align-items: center;
}

.split img {
  width: 100%;
  height: 520px;

  object-fit: cover;
}


/* =========================================================
   17. LISTE
   ========================================================= */

.list {
  margin: 20px 0 0;
  padding: 0;

  list-style: none;
}

.list li {
  padding: 13px 0;

  border-bottom: 1px solid var(--line);
}

.list li::before {
  content: "—";

  margin-right: 10px;

  color: var(--gold);
}


/* =========================================================
   18. CITAZIONI
   ========================================================= */

.quote {
  max-width: 800px;

  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;

  line-height: 1.35;
}


/* =========================================================
   19. CTA
   ========================================================= */

.cta {
  padding: 65px 0;

  background: #181715;
  color: var(--white);
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.cta h2 {
  margin: 0;
}


/* =========================================================
   20. BREADCRUMB
   ========================================================= */

.breadcrumb {
  padding: 22px 0;

  color: var(--muted);

  font-size: 12px;
}


/* =========================================================
   21. HERO PAGINE INTERNE
   ========================================================= */

.page-hero {
  padding: 70px 0 65px;

  border-bottom: 1px solid var(--line);

  background: var(--paper2);
}

.page-hero h1 {
  max-width: 900px;

  margin: 12px 0;

  font-size: clamp(42px, 5vw, 66px);
}

.page-content {
  padding-top: 55px;
  padding-bottom: 80px;
}

.meta-box {
  padding-left: 20px;

  border-left: 2px solid var(--gold);

  color: var(--muted);
}


/* =========================================================
   22. STATISTICHE
   ========================================================= */

.stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 28px 18px;

  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;

  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}

.stat span {
  color: var(--muted);

  font-size: 12px;

  text-transform: uppercase;
  letter-spacing: .1em;
}


/* =========================================================
   23. TIMELINE
   ========================================================= */

.timeline {
  margin-left: 10px;
  padding-left: 28px;

  border-left: 1px solid var(--line);
}

.timeline article {
  margin: 0 0 32px;
}

.timeline b {
  color: var(--gold);
}


/* =========================================================
   24. FORM
   ========================================================= */

.form {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 15px;
}

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

.form label {
  display: block;

  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;

  margin-top: 5px;
  padding: 14px;

  border: 1px solid var(--line);
  border-radius: 0;

  background: var(--white);
  color: var(--ink);

  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);

  outline: none;
}

textarea {
  min-height: 150px;

  resize: vertical;
}


/* =========================================================
   25. CONSENSO PRIVACY
   ========================================================= */

.consent {
  display: flex !important;

  align-items: flex-start;

  gap: 10px;
}

.consent input {
  flex: 0 0 auto;

  width: auto;

  margin-top: 6px;
}


/* =========================================================
   26. HONEYPOT ANTISPAM
   ========================================================= */

.pavlova-hp {
  position: absolute !important;

  left: -9999px !important;

  width: 1px !important;
  height: 1px !important;

  overflow: hidden !important;
}


/* =========================================================
   27. MESSAGGI MODULO PAVLOVA
   ========================================================= */

.pavlova-form-message {
  width: 100%;

  margin: 0 0 30px;
  padding: 22px 25px;

  border: 1px solid var(--line);

  background: var(--white);
}

.pavlova-form-message.success {
  border-left: 4px solid var(--gold);
}

.pavlova-form-message.error {
  border-left: 4px solid #8b2d2d;
}

.pavlova-form-message strong {
  display: block;

  margin-bottom: 6px;

  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;

  line-height: 1.25;
}

.pavlova-form-message p {
  margin: 0;

  color: var(--muted);
}


/* =========================================================
   28. FOOTER
   ========================================================= */

footer {
  padding: 55px 0 25px;

  background: #111;
  color: #e9e3da;
}

.footer-grid {
  display: grid;

  grid-template-columns: 1.5fr 1fr 1fr;

  gap: 50px;
}

.footer-grid h3 {
  font-size: 20px;
}

.footer-grid p,
.footer-grid a {
  color: #bdb5ab;

  font-size: 14px;
}

.footer-grid a:hover {
  color: var(--white);
}

.copyright {
  display: flex;
  justify-content: space-between;

  gap: 20px;

  margin-top: 40px;
  padding-top: 20px;

  border-top: 1px solid #383531;

  color: #8e877f;

  font-size: 11px;
}


/* =========================================================
   29. NOTE MOBILE
   ========================================================= */

.mobile-note {
  display: none;
}


/* =========================================================
   30. TABLET / MENU MOBILE
   ========================================================= */

@media (max-width: 980px) {

  .nav {
    min-height: 70px;

    flex-wrap: wrap;

    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .audition-btn {
    display: none;
  }

  .primary-nav {
    display: none;

    width: 100%;

    margin-left: 0;
    padding: 10px 0 18px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: flex;

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

    gap: 0;

    width: 100%;
  }

  .primary-nav li {
    width: 100%;
  }

  .primary-nav a {
    display: block;

    width: 100%;

    padding: 12px 0;

    border-bottom: 1px solid var(--line);

    font-size: 12px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 65px 20px;
  }

  .hero-media {
    min-height: 430px;
  }

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

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

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


/* =========================================================
   31. SMARTPHONE
   ========================================================= */

@media (max-width: 600px) {

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .topbar .container {
    flex-direction: column;

    gap: 2px;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .nav {
    min-height: 68px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand span {
    font-size: 9px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 55px 14px 48px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-copy .lead {
    font-size: 16px;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-label {
    left: 14px;
    right: 14px;
    bottom: 14px;

    padding: 12px 14px;
  }

  .section {
    padding: 60px 0;
  }

  .grid,
  .grid-2,
  .footer-grid,
  .form {
    grid-template-columns: 1fr;
  }

  .form .full {
    grid-column: auto;
  }

  .split {
    gap: 30px;
  }

  .split img {
    height: auto;
    max-height: 520px;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .stat strong {
    font-size: 30px;
  }

  .cta .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyright {
    flex-direction: column;

    gap: 8px;
  }

  .mobile-note {
    display: block;

    margin-top: 18px;

    color: var(--muted);

    font-size: 11px;
  }

  .pavlova-form-message {
    padding: 18px;
  }

  .pavlova-form-message strong {
    font-size: 20px;
  }
}


/* =========================================================
   32. SCHERMI MOLTO PICCOLI
   ========================================================= */

@media (max-width: 380px) {

  .brand strong {
    font-size: 16px;
  }

  .brand span {
    font-size: 8px;
  }

  .nav-toggle {
    padding: 9px 11px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

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

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}


/* =========================================================
   33. RIDUZIONE ANIMAZIONI
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   34. V4 - VOCE AUDIZIONI NEL MENU
   ========================================================= */
@media (min-width: 981px) {
  .primary-nav .mobile-audition {
    display: none !important;
  }
}
@media (max-width: 980px) {
  .primary-nav .mobile-audition {
    display: block !important;
  }
}

/* =========================================================
   35. V4 - FOTO BIOGRAFICHE SENZA RITAGLIO
   La classe va applicata al tag img delle pagine La Scuola
   e Svetlana Pavlova.
   ========================================================= */
.split img.pavlova-scuola-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

/* =========================================================
   36. V4 - DOCENTI: 2 COLONNE DESKTOP, 1 MOBILE
   Richiede <section class="section pavlova-docenti">
   con <div class="container grid"> al suo interno.
   ========================================================= */
section.pavlova-docenti > .container.grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 28px !important;
  align-items: stretch;
  justify-items: stretch;
}

section.pavlova-docenti > .container.grid > .card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

section.pavlova-docenti .card.image > img {
  display: block;
  width: 100%;
  height: 300px;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #f5f1eb;
}

section.pavlova-docenti .card .pad {
  padding: 24px;
}

section.pavlova-docenti .card:not(.image) .pad {
  padding: 0;
}

section.pavlova-docenti .card h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  section.pavlova-docenti > .container.grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  section.pavlova-docenti .card.image > img {
    height: auto;
    max-height: 360px;
  }
}