/* DESIGN SYSTEM: Magazine Editorial / Milan Elegant */
:root {
  --bg: #ffffff;
  --text: #111111;
  --text-muted: #555555;
  --accent: #000000; /* Strict Black */
  --line: #e5e5e5;
  --highlight: #f3f3f3;

  --font-serif: "Playfair Display", serif; /* For Headlines */
  --font-sans: "Inter", sans-serif; /* For Body text */

  --container: 1000px; /* Narrower for reading experience */
  --pad: 24px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7; /* Readable line height */
  overflow-x: hidden;
}

/* UTILS */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  width: 100%;
  display: block;
  object-fit: cover;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--accent);
  line-height: 1.2;
}
h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  text-align: center;
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.narrow {
  max-width: 800px;
}
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* BUTTONS */
.btn-text {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--accent);
}
.btn-text:hover {
  color: #666;
  border-color: #666;
}

.btn-solid {
  display: inline-block;
  padding: 18px 40px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 1px solid var(--accent);
  transition: 0.3s;
}
.btn-solid:hover {
  background: var(--bg);
  color: var(--accent);
}

.btn-outline {
  display: inline-block;
  padding: 18px 40px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-link {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.btn-solid-large {
  display: inline-block;
  padding: 20px 50px;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
}
.btn-solid-large:hover {
  opacity: 0.8;
}

.btn-submit {
  width: 100%;
  padding: 20px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: 1px;
  transition: 0.3s;
  margin-top: 20px;
}
.btn-submit:hover {
  background: #333;
}

/* HEADER */
.mag-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  height: 90px;
  display: flex;
  align-items: center;
}
.h-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  margin-top: 5px;
  color: var(--text-muted);
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}
.burger span {
  width: 100%;
  height: 1px;
  background: var(--accent);
  transition: 0.3s;
}
.burger:hover span:nth-child(2) {
  width: 70%;
}

/* OVERLAY MENU */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 200;
  transform: translateY(-100%);
  transition: 0.6s cubic-bezier(0.7, 0, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.overlay-menu.active {
  transform: translateY(0);
}
.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
}
.close-btn i {
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.om-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  text-align: center;
  margin-top: 100px;
}
.om-links a {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent);
  position: relative;
}
.om-links a:hover {
  font-style: italic;
  color: #555;
}
.om-footer {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 50px;
}

/* HERO */
.hero-mag {
  padding-top: 160px;
  padding-bottom: 100px;
}
.hero-meta {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.hero-divider {
  width: 1px;
  height: 60px;
  background: var(--text);
  margin: 40px auto;
}
.hero-lead {
  font-size: 1.3rem;
  margin-bottom: 50px;
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}
.img-caption {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}

/* SCROLL TEXT */
.text-ribbon {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 15px 0;
  overflow: hidden;
  background: var(--bg);
}
.ribbon-track {
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
}
.ribbon-track span {
  margin: 0 40px;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* MANIFESTO */
.content-block p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-muted);
  text-align: justify;
}
.drop-cap::first-letter {
  font-family: var(--font-serif);
  font-size: 5rem;
  float: left;
  line-height: 0.8;
  padding-right: 15px;
  margin-top: 5px;
  color: var(--accent);
}
.stats-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 60px;
}
.stat-item {
  text-align: center;
}
.stat-item .num {
  display: block;
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-item .lbl {
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* COURSES */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 100px;
}
.course-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.course-item.reverse .ci-img {
  order: 2;
}
.ci-img {
  height: 500px;
}
.ci-cat {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  padding: 5px 10px;
  display: inline-block;
  margin-bottom: 20px;
}
.ci-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.ci-tags {
  margin-bottom: 30px;
  border-left: 2px solid var(--line);
  padding-left: 20px;
}
.ci-tags li {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* PARTNERS */
.partners-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 60px;
  opacity: 0.5;
}
.p-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

/* PRICING (NO PRICES) */
.center-box {
  max-width: 800px;
  text-align: center;
}
.lead-text {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 40px;
}
.pricing-txt p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.pricing-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin: 50px 0;
  text-align: left;
}
.po-item {
  padding: 30px;
  background: var(--highlight);
}
.po-item h4 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.po-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.cta-wrap {
  margin-top: 40px;
}

/* FAQ */
.faq-accordion {
  border-top: 1px solid var(--line);
  margin-top: 60px;
}
.faq-row {
  border-bottom: 1px solid var(--line);
}
.faq-toggle {
  width: 100%;
  text-align: left;
  padding: 25px 0;
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  transition: 0.3s;
}
.faq-toggle:hover {
  color: #666;
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
}
.faq-body p {
  padding-bottom: 30px;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 90%;
}

/* CONTACT */
.form-container {
  max-width: 800px;
}
.fc-head {
  margin-bottom: 60px;
}
.clean-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-row.split {
  flex-direction: row;
  gap: 20px;
}
.inp-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clean-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.clean-form input,
.clean-form select {
  width: 100%;
  padding: 15px 0;
  border: none;
  border-bottom: 1px solid #ccc;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  background: transparent;
  border-radius: 0;
}
.clean-form input:focus,
.clean-form select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.form-agree {
  font-size: 0.9rem;
  margin-top: 20px;
  display: flex;
  gap: 10px;
  align-items: start;
  color: var(--text-muted);
}
.form-agree a {
  text-decoration: underline;
  color: var(--text);
}

.contact-direct {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.phone-link {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin: 10px 0;
}
.addr {
  color: var(--text-muted);
}

/* FOOTER */
.mag-footer {
  border-top: 2px solid var(--accent);
  padding: 80px 0 40px;
  margin-top: 100px;
}
.f-brand {
  font-family: var(--font-serif);
  font-size: 4rem;
  margin-bottom: 40px;
  letter-spacing: -2px;
}
.f-links-row,
.f-legal-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.f-socials {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-direction: column;
}
.f-links-row a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.f-legal-row a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.f-socials a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
}
.f-copy {
  font-size: 0.8rem;
  color: #999;
  margin-top: 40px;
}

/* COOKIE */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--accent);
  padding: 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  z-index: 500;
}
.cookie-banner p {
  font-size: 0.9rem;
  margin-right: 20px;
}
#acceptCookie {
  padding: 10px 30px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .h-right {
    display: none;
  }
  .hero-img-wrap {
    height: 400px;
  }
  .course-item,
  .course-item.reverse {
    grid-template-columns: 1fr;
  }
  .ci-img {
    height: 300px;
    order: -1;
  }
  .pricing-options {
    grid-template-columns: 1fr;
  }
  .form-row.split {
    flex-direction: column;
    gap: 20px;
  }
  .stats-row {
    flex-direction: column;
    gap: 30px;
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 10px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 22px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

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

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
