:root {
  color-scheme: light;
  --ink: #101927;
  --muted: #637087;
  --line: #d6deea;
  --paper: #f7f9fd;
  --soft: #eef3fa;
  --navy: #13233a;
  --navy-soft: #263c5f;
  --blue: #315d92;
  --marble: #ffffff;
  --rose: #b66b78;
  --rose-dark: #8c4655;
  --blush: #e7d7dc;
  --green: #2c8762;
  --deep-green: #1b6047;
  --red: #b66b78;
  --deep-red: #8c4655;
  --gold: #315d92;
  --sky: #edf3fb;
  --shadow: 0 24px 64px rgba(16, 25, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 82% 4%, rgba(49, 93, 146, 0.2), rgba(49, 93, 146, 0) 30%),
    linear-gradient(132deg, rgba(255, 255, 255, 0.95) 0 18%, rgba(84, 111, 145, 0.13) 18% 20%, rgba(255, 255, 255, 0.9) 20% 43%, rgba(19, 35, 58, 0.12) 43% 45%, rgba(247, 249, 253, 0.96) 45% 100%),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select,
a {
  font: inherit;
}

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

.topbar {
  align-items: center;
  background: rgba(247, 249, 253, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(214, 222, 234, 0.86);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 0 34px;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0 52%, white 52% 62%, var(--blue) 62%);
  border: 1px solid rgba(19, 35, 58, 0.18);
  border-radius: 14px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

main {
  overflow: hidden;
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 249, 253, 0.92) 0%, rgba(247, 249, 253, 0.74) 42%, rgba(19, 35, 58, 0.12) 100%),
    url("assets/florence-city-center.png") center / cover no-repeat;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 760px);
  min-height: min(760px, calc(100vh - 68px));
  padding: 72px 34px;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.24) 0 24%, rgba(214, 222, 234, 0.18) 24% 26%, rgba(255, 255, 255, 0.1) 26% 44%, rgba(19, 35, 58, 0.12) 44% 46%, rgba(255, 255, 255, 0) 46% 100%),
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0) 26%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-title-lockup {
  align-items: center;
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.hero-title-lockup img {
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 22px 52px rgba(16, 25, 39, 0.28);
  flex: 0 0 auto;
  height: clamp(118px, 14vw, 184px);
  object-fit: cover;
  object-position: center top;
  width: clamp(118px, 14vw, 184px);
}

.eyebrow {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 700;
  line-height: 0.96;
  margin-bottom: 0;
  max-width: 780px;
}

.hero-text {
  color: #536176;
  font-size: 1.18rem;
  line-height: 1.7;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.ghost-action,
.secondary-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
}

.primary-action {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  box-shadow: 0 12px 26px rgba(19, 35, 58, 0.22);
}

.ghost-action,
.secondary-action {
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
}

.stats {
  background:
    linear-gradient(90deg, rgba(19, 35, 58, 0.96) 0 33.333%, rgba(255, 255, 255, 0.96) 33.333% 66.666%, rgba(49, 93, 146, 0.92) 66.666% 100%),
    var(--paper);
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats div {
  border-right: 1px solid rgba(32, 33, 36, 0.08);
  padding: 24px 34px;
}

.stats div:nth-child(2) {
  color: var(--ink);
}

.stats strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
}

.stats span {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  font-size: 0.9rem;
  margin-top: 7px;
}

.stats div:nth-child(2) span {
  color: var(--muted);
}

.lesson-shell,
.builder,
.video-section,
.profile-section,
.availability-section,
.booking-contact {
  margin: 0 auto;
  max-width: 1180px;
  padding: 86px 34px 0;
}

.lesson-shell {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 250px 1fr;
}

.lesson-menu {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(214, 222, 234, 0.42)),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 8px;
  position: sticky;
  top: 88px;
}

.topic-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-weight: 850;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  text-align: left;
}

.topic-button span {
  color: var(--blue);
  font-size: 0.78rem;
}

.topic-button.active {
  background: white;
  border-left: 4px solid var(--blue);
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.08);
  color: var(--ink);
}

.lesson-panel,
.builder-board,
.profile-card,
.availability-table,
.form-panel {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.88)),
    white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.lesson-panel {
  padding: 32px;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 18px;
}

.topic-intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 760px;
}

.about-valentina {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(237, 243, 251, 0.9)),
    white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  padding: 26px;
}

.about-valentina p {
  color: #46546a;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0;
  max-width: 940px;
}

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

.profile-card {
  padding: 24px;
}

.profile-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  margin-bottom: 12px;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.phrase-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.phrase-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 18px;
}

.phrase-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.phrase-card span {
  color: var(--muted);
  line-height: 1.5;
}

.phrase-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: auto;
}

.tag {
  background: var(--sky);
  border-radius: 999px;
  color: var(--navy-soft);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 10px;
}

.icon-button {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border: 0;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.video-section {
  display: grid;
  gap: 28px;
}

.video-preview {
  align-items: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  overflow: hidden;
  position: relative;
}

.video-preview img {
  display: block;
  filter: saturate(0.95) contrast(0.96);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.video-preview::after {
  background: linear-gradient(180deg, rgba(16, 25, 39, 0.04), rgba(16, 25, 39, 0.34));
  content: "";
  inset: 0;
  position: absolute;
}

.video-preview span {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 16px 42px rgba(16, 25, 39, 0.28);
  color: var(--navy);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  position: absolute;
  z-index: 1;
}

.availability-table {
  display: grid;
  overflow-x: auto;
  padding: 8px;
}

.availability-head,
.availability-row {
  display: grid;
  grid-template-columns: 120px repeat(6, minmax(112px, 1fr));
  min-width: 790px;
}

.availability-head span,
.availability-row > span,
.availability-row button {
  align-items: center;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  justify-content: center;
  min-height: 58px;
  padding: 10px;
}

.availability-head span {
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.availability-row > span:first-child {
  color: var(--muted);
  font-weight: 900;
}

.availability-row button {
  background: rgba(237, 243, 251, 0.9);
  border-top: 0;
  border-left: 0;
  color: var(--blue);
  cursor: pointer;
  font-weight: 900;
}

.availability-row button:hover,
.availability-row button.selected {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
}

.builder {
  display: grid;
  gap: 28px;
}

.builder-board {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: 28px;
}

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

label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 8px;
  text-transform: uppercase;
}

select {
  appearance: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 48px;
  padding: 0 12px;
  text-transform: none;
}

.sentence-output {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(19, 35, 58, 0.98), rgba(49, 93, 146, 0.92)),
    var(--navy);
  border-radius: 18px;
  color: white;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 22px;
}

.sentence-output p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0;
}

.sentence-output .icon-button {
  background: white;
  color: var(--navy);
  flex: 0 0 auto;
}

footer {
  background: linear-gradient(90deg, var(--navy), var(--blue), var(--deep-green));
  color: rgba(255, 255, 255, 0.74);
  padding: 28px 34px;
  text-align: center;
}

.booking-contact {
  padding-bottom: 88px;
}

.booking-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.form-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.form-panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 4px;
}

.booking-panel {
  gap: 20px;
}

.lesson-table {
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  overflow: hidden;
}

.lesson-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 16px;
  text-transform: none;
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-row:has(input:checked) {
  background: linear-gradient(135deg, rgba(237, 243, 251, 0.95), rgba(255, 255, 255, 0.86));
  box-shadow: inset 4px 0 0 var(--blue);
}

.lesson-row input,
.slot-picker input {
  accent-color: var(--blue);
  height: 18px;
  min-height: auto;
  width: 18px;
}

.lesson-row strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.lesson-row small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lesson-row b {
  color: var(--navy);
  font-size: 1.3rem;
}

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

.slot-picker label {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 10px;
  min-height: 52px;
  padding: 0 12px;
  text-transform: none;
}

.slot-picker label:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 93, 146, 0.12);
}

.student-fields,
.payment-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-box {
  background: linear-gradient(140deg, rgba(19, 35, 58, 0.98), rgba(49, 93, 146, 0.92));
  border-radius: 18px;
  color: white;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.payment-box label {
  color: rgba(255, 255, 255, 0.78);
}

.payment-box input {
  background: rgba(255, 255, 255, 0.94);
}

.payment-summary {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.payment-summary span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.payment-summary strong {
  font-size: 1.75rem;
}

.payment-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  margin: -6px 0 0;
}

.direct-contact {
  background:
    linear-gradient(140deg, rgba(236, 255, 245, 0.94), rgba(255, 255, 255, 0.82)),
    white;
  border: 1px solid rgba(44, 135, 98, 0.26);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.direct-contact p {
  color: var(--deep-green);
  font-weight: 850;
  margin: 0;
}

.whatsapp-action,
.email-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  width: fit-content;
}

.whatsapp-action {
  background: linear-gradient(135deg, var(--green), var(--deep-green));
  color: white;
}

.email-action {
  background: white;
  border: 1px solid rgba(44, 135, 98, 0.28);
  color: var(--deep-green);
}

input,
textarea {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px;
  resize: vertical;
  text-transform: none;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 93, 146, 0.16);
  outline: none;
}

.form-panel button {
  border: 0;
  cursor: pointer;
  width: fit-content;
}

.form-panel .ghost-action {
  border: 1px solid var(--line);
}

.form-status {
  color: var(--blue);
  font-weight: 850;
  line-height: 1.5;
  margin: 0;
  min-height: 24px;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px 22px;
    position: relative;
  }

  nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero {
    background-position: 58% center;
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 56px 22px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(247, 249, 253, 0.64) 0%, rgba(247, 249, 253, 0.4) 46%, rgba(247, 249, 253, 0.16) 100%),
      radial-gradient(circle at 45% 22%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 36%);
  }

  .hero-copy {
    align-self: start;
    padding: 0;
  }

  .hero-title-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats,
  .lesson-shell,
  .profile-grid,
  .builder-board,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .stats div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 0;
  }

  .lesson-shell,
  .builder,
  .video-section,
  .profile-section,
  .availability-section,
  .booking-contact {
    padding-left: 22px;
    padding-right: 22px;
  }

  .lesson-menu {
    position: static;
  }

  .phrase-grid,
  .builder-controls,
  .slot-picker,
  .student-fields,
  .payment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.2rem;
  }

  .hero-actions a {
    width: 100%;
  }

  .lesson-panel,
  .builder-board,
  .form-panel {
    padding: 20px;
  }

  .sentence-output {
    align-items: flex-start;
    flex-direction: column;
  }
}
