/* ── GFS fonts (fallback, self-hosted) ──────────────────── */

@font-face {
  font-family: "GFS Didot";
  src: url("../fonts/gfs-didot-latin.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "GFS Neohellenic";
  src: url("../fonts/gfs-neohellenic-latin-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "GFS Neohellenic";
  src: url("../fonts/gfs-neohellenic-latin-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

/* ── Design tokens ──────────────────────────────────────── */

:root {
  --red: #a30b11;
  --red-strong: #7f070c;
  --black: #1d1d1d;
  --ink: #262120;
  --muted: #6a615d;
  --paper: #fffaf7;
  --paper-2: #f0e6e0;
  --white: #ffffff;
  --line: rgba(29, 29, 29, 0.13);
  --line-strong: rgba(29, 29, 29, 0.24);
  --shadow: 0 16px 48px rgba(29, 29, 29, 0.1);

  /* Narrower container — content more focused */
  --container: 1280px;
  --gutter: clamp(1.5rem, 4vw, 3.5rem);

  /* Compact vertical spacing */
  --section-y: clamp(2.8rem, 4.5vw, 4rem);

  /* Cinzel: stone-carved Greek epigraphy */
  /* Cormorant Garamond: classical manuscript */
  --font-display: "Cinzel", "GFS Didot", Georgia, serif;
  --font-body: "Cormorant Garamond", "GFS Neohellenic", Georgia, serif;

  --meander-pattern: url("../svg/greek/meander-key.svg");
  --radius-card: 2px;
  --radius-btn: 1px;

  /* Nav height — fixed, no shrink */
  --nav-h: 76px;
}

/* ── Reset & base ───────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.22rem;
  line-height: 1.72;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(163, 11, 17, 0.8);
  outline-offset: 3px;
}

::selection {
  color: var(--white);
  background: var(--red);
}

/* ── Layout ─────────────────────────────────────────────── */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* Alternating section backgrounds — no grid, no dividers */
main > section {
  background: var(--paper);
}

main > section:nth-child(even) {
  background: var(--paper-2);
}

/* Accessibility */
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--black);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* ── Typography ─────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  font-size: clamp(3.6rem, 10vw, 9rem);
  letter-spacing: 0.06em;
}

h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  letter-spacing: 0.04em;
}

h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  letter-spacing: 0.03em;
}

p {
  margin: 0;
  font-size: 1.35rem;
  text-align: justify;
  hyphens: auto;
}

/* Card titles — compact grid context */
.soft-card h3,
.course-card h3,
.value-item h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

sup {
  font-size: 0.48em;
  vertical-align: super;
  letter-spacing: 0;
}

/* ── Buttons ────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid var(--black);
  border-radius: var(--radius-btn);
  color: var(--black);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.button-primary:hover {
  background: var(--black);
  border-color: var(--black);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--black);
}

.button-small {
  min-height: 2.4rem;
  padding: 0.6rem 1rem;
  font-size: 0.6rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  width: 1.2rem;
  height: 1px;
  background: currentColor;
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 2rem;
}

/* ══════════════════════════════════════════════════════════
   HEADER / NAVBAR — fixed, full-width, minimal, left-aligned
   ══════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
}

/* Greek meander accent strip at bottom of nav */
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-color: var(--red);
  -webkit-mask: var(--meander-pattern) repeat-x center / auto 8px;
  mask: var(--meander-pattern) repeat-x center / auto 8px;
  opacity: 0.55;
  pointer-events: none;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: 100%;
  height: var(--nav-h);
  padding-inline: clamp(1.5rem, 4vw, 3.5rem);
  padding-bottom: 8px; /* account for meander strip */
  color: var(--white);
  background: rgba(22, 18, 18, 0.97);
  backdrop-filter: blur(6px);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-logo {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  display: grid;
  gap: 0.02rem;
  line-height: 1;
}

.brand-text span {
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.brand-text strong {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* Thin vertical separator brand / nav */
.brand::after {
  content: "";
  display: block;
  width: 1px;
  height: 1.1rem;
  background: rgba(255, 255, 255, 0.16);
  margin-left: 0.4rem;
  flex-shrink: 0;
}

/* Nav links — left-aligned, compact */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.site-nav a {
  position: relative;
  padding: 0.25rem 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a.is-active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.nav-piva {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.38rem 0.8rem;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius-btn);
}

.nav-piva::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--white);
  -webkit-mask: url("../svg/greek/scroll-text.svg") center / contain no-repeat;
  mask: url("../svg/greek/scroll-text.svg") center / contain no-repeat;
}

.nav-piva-mobile {
  display: none;
}

/* Nav toggle (mobile) */
.nav-actions {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: var(--radius-btn);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--white);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */

.hero {
  position: relative;           /* explicit containing block for absolute layers */
  display: grid;
  min-height: 100vh;            /* fallback for browsers without svh */
  min-height: 100svh;
  overflow: hidden;
  padding-block: 0;
  color: var(--white);
  background: var(--black);    /* always-visible base */
}

/* Layer 0 — CSS-only Greek temple silhouette (always visible, no image needed) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.05);
  -webkit-mask: url("../svg/greek/greek-temple.svg") center 90% / 72% auto no-repeat;
  mask: url("../svg/greek/greek-temple.svg") center 90% / 72% auto no-repeat;
  pointer-events: none;
}

/* Layer 1 — background photo (enhancement, not requirement) */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(0.22) contrast(1.08) saturate(0.75) sepia(0.2);
}

/* Layer 2 — gradient overlay */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(22, 18, 18, 0.82) 0%,
    rgba(22, 18, 18, 0.4) 44%,
    rgba(22, 18, 18, 0.85) 100%
  );
}

/* Layer 3 — content */
.hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(6.5rem, 13vh, 9.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
  text-align: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 0;
  max-width: min(1080px, 100%);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.hero-kicker {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.hero-kicker .eyebrow {
  margin: 0;
  display: inline-block;
  padding: 0.38rem 0.75rem;
  background: var(--red);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  letter-spacing: 0.18em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}

.hero h1 {
  color: var(--white);
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.42);
}

.hero-laurel {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.hero-laurel img {
  width: 4.5rem;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.42;
}

.hero-subtitle {
  max-width: min(800px, 100%);
  margin-top: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.hero-description {
  max-width: min(800px, 100%);
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.28rem, 1.7vw, 1.55rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.hero .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .button-secondary:hover {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

/* ── Two-column layout ──────────────────────────────────── */

.two-column,
.instructor-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.instructor-grid {
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1fr);
  align-items: center;
}

.content-stack,
.instructor-copy {
  display: grid;
  gap: 0.85rem;
}

.content-stack,
.instructor-copy p:not(.eyebrow, .role),
.section-heading.centered p:not(.eyebrow),
.course-card p,
.soft-card p,
.value-item p,
.video-card-content p,
.policy-content p,
.policy-content li,
.course-note p {
  color: var(--muted);
}

.section-heading.centered {
  max-width: min(920px, 100%);
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered h2 {
  margin-inline: auto;
}

.section-heading.centered p:not(.eyebrow) {
  max-width: min(780px, 100%);
  margin: 0.8rem auto 0;
  text-align: center;
}

/* Override justify for short/decorative/centered contexts */
.eyebrow,
.hero p,
.hero-copy p,
.cookie-banner p,
.footer-grid p,
.contact-card-body span,
.portrait-note span,
.portrait-note strong,
.course-card p,
.soft-card p,
.value-item p,
.course-note p,
.contact-card p,
.cookie-modal p,
.preference-item small {
  text-align: left;
  hyphens: none;
}

/* Small meander ornament below centered eyebrow — Greek accent */
.section-heading.centered .eyebrow {
  position: relative;
  padding-bottom: 1.2rem;
}

.section-heading.centered .eyebrow::after {
  content: "";
  position: absolute;
  bottom: 0.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 8px;
  background-color: var(--red);
  -webkit-mask: var(--meander-pattern) center / auto 8px repeat-x;
  mask: var(--meander-pattern) center / auto 8px repeat-x;
  opacity: 0.45;
}

/* ── Grids ──────────────────────────────────────────────── */

.philosophy-grid,
.courses-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.school-path-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.45fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.school-path-copy {
  max-width: none;
}

.school-path-copy h2 {
  margin-inline: 0;
}

.school-path-copy p:not(.eyebrow) {
  max-width: none;
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.school-path-list {
  display: grid;
  gap: 0.25rem;
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.school-path-list li {
  padding-left: 0.15rem;
  font-size: 1.35rem;
}

.school-path-list li::marker {
  color: var(--red);
}

.school-path-side {
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.school-path-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.school-path-cards .course-card {
  height: 100%;
}

.school-path-chart {
  margin: 0;
  overflow-x: auto;
}

.school-path-chart img {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(22, 18, 18, 0.08);
}

.other-courses-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.other-courses-copy {
  max-width: none;
}

.other-courses-copy h2 {
  margin-inline: 0;
}

.other-courses-copy p:not(.eyebrow) {
  max-width: none;
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.other-courses-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.other-courses-grid > .other-courses-copy:last-child {
  grid-column: 1 / -1;
  max-width: min(780px, 100%);
}

/* ── Cards ──────────────────────────────────────────────── */

.soft-card,
.course-card,
.value-item,
.video-card,
.course-note,
.policy-content,
.preference-item {
  background: var(--white);
  border: 1px solid var(--line);
}

.soft-card,
.course-card,
.value-item,
.course-note,
.policy-content {
  padding: clamp(0.95rem, 1.8vw, 1.4rem);
}

.soft-card,
.course-card,
.value-item {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  border-radius: var(--radius-card);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.soft-card:hover,
.course-card:hover,
.value-item:hover {
  transform: translateY(-3px);
  border-color: rgba(163, 11, 17, 0.35);
  box-shadow: 0 8px 28px rgba(163, 11, 17, 0.07);
}

/* ── Icons ──────────────────────────────────────────────── */

.icon-pill,
.value-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: var(--white);
  background: var(--red);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.value-icon::before {
  content: "";
  display: block;
  width: 1.3rem;
  height: 1.3rem;
  background: currentColor;
  -webkit-mask: var(--value-icon) center / contain no-repeat;
  mask: var(--value-icon) center / contain no-repeat;
}

.value-icon-scroll {
  --value-icon: url("../svg/greek/scroll-text.svg");
}

.value-icon-laurel {
  --value-icon: url("../svg/greek/laurel-wreath-line.svg");
}

.value-icon-column {
  --value-icon: url("../svg/greek/column.svg");
}

.value-icon-amphora {
  --value-icon: url("../svg/greek/amphora.svg");
}

.value-icon-temple {
  --value-icon: url("../svg/greek/temple-outline.svg");
}

.value-icon-torch {
  --value-icon: url("../svg/greek/olympic-torch.svg");
}

/* ── Portrait / Instructor ──────────────────────────────── */

.portrait-card {
  position: relative;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: 50% 16%;
  border: 2px solid var(--black);
  box-shadow: var(--shadow);
}

.portrait-note {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  color: var(--white);
  background: rgba(22, 18, 18, 0.9);
}

.portrait-note span {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.portrait-note strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.instructor-copy .role {
  color: var(--red);
  font-size: 1.22rem;
  font-weight: 500;
}

/* ── SVG Watermarks — Greek decorative motifs ───────────── */

#chi-e,
#sessioni {
  overflow: hidden;
}

#chi-e::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -4%;
  width: min(44%, 360px);
  aspect-ratio: 1;
  background-color: var(--ink);
  -webkit-mask: url("../svg/greek/amphora.svg") center / contain no-repeat;
  mask: url("../svg/greek/amphora.svg") center / contain no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

#sessioni::after {
  content: "";
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  width: min(40%, 340px);
  aspect-ratio: 1;
  background-color: var(--ink);
  -webkit-mask: url("../svg/greek/laurel-wreath.svg") center / contain no-repeat;
  mask: url("../svg/greek/laurel-wreath.svg") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* ── Course cards ───────────────────────────────────────── */

.course-card dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.course-card dl div {
  display: grid;
  gap: 0.08rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.course-card dt,
.course-tag {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.course-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.course-info-button {
  width: fit-content;
  margin-top: auto;
}

.course-tag {
  width: fit-content;
  padding: 0.25rem 0.55rem;
  background: rgba(163, 11, 17, 0.06);
  border: 1px solid rgba(163, 11, 17, 0.16);
  border-radius: var(--radius-btn);
}

.course-card.featured {
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--red-strong));
  border-color: transparent;
}

.course-card.featured h3,
.course-card.featured p,
.course-card.featured dd,
.course-card.featured .text-link {
  color: var(--white);
}

.course-card.featured .course-tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.course-card.featured dl div {
  border-color: rgba(255, 255, 255, 0.2);
}

.course-note {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
  border-left: 3px solid var(--red);
}

/* ── Video section ──────────────────────────────────────── */

.local-video-placeholder,
.consent-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 13rem;
  background: var(--black);
}

.local-video-placeholder img,
.local-video-placeholder video,
.consent-embed img,
.consent-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video-card {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.video-card-content {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.6rem;
  height: 3.6rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--black);
  transform: translate(-50%, -50%);
}

.play-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  width: 0;
  height: 0;
  border-top: 0.58rem solid transparent;
  border-bottom: 0.58rem solid transparent;
  border-left: 0.85rem solid var(--red);
  transform: translate(-50%, -50%);
}

.embed-lock {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.5rem;
  color: var(--white);
  background: linear-gradient(180deg, rgba(22, 18, 18, 0.1), rgba(22, 18, 18, 0.86));
  text-align: center;
}

.embed-lock .play-mark {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

.embed-lock h3,
.embed-lock p {
  color: var(--white);
}

/* ── Preference list (cookie modal) ────────────────────── */

.preference-list {
  display: grid;
  gap: 0.65rem;
}

.preference-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.25rem;
  padding: 0.85rem;
}

.preference-item input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--red);
}

.preference-item span {
  display: grid;
  gap: 0.12rem;
}

.preference-item small {
  color: var(--muted);
}

.preference-item.disabled {
  opacity: 0.7;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  position: relative;
  padding-block: 3.5rem 1.2rem;
  color: rgba(255, 255, 255, 0.72);
  background: var(--black);
  /* Meander accent at top of footer */
  border-top: 8px solid transparent;
  background-clip: padding-box;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background-color: var(--red);
  -webkit-mask: var(--meander-pattern) repeat-x center / auto 8px;
  mask: var(--meander-pattern) repeat-x center / auto 8px;
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.footer-grid p {
  max-width: 28rem;
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a,
.footer-button-link {
  padding: 0;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 140ms ease;
}

.footer-links a:hover,
.footer-button-link:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.88rem;
}

.footer-brand-col {
  display: grid;
  gap: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.footer-brand-name {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.footer-brand-name sup {
  font-size: 0.55em;
  vertical-align: super;
}

.footer-brand-sub {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
  color: rgba(255, 255, 255, 0.65);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.footer-social-link:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

/* ── Gallery diplomati ──────────────────────────────────── */

.gallery-section {
  overflow: hidden;
  background: var(--paper);
}

.gallery-marquee {
  width: 100%;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  overflow-x: scroll;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.gallery-marquee::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  width: max-content;
}

.gallery-sequence {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  padding: clamp(0.65rem, 1.5vw, 1rem);
}

.gallery-slide {
  flex: 0 0 auto;
  width: clamp(260px, 34vw, 520px);
  margin: 0;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 410px);
  object-fit: cover;
  object-position: center;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.gallery-btn {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.gallery-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* ── Contacts section ───────────────────────────────────── */

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: clamp(0.95rem, 1.8vw, 1.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

a.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(163, 11, 17, 0.35);
  box-shadow: 0 8px 28px rgba(163, 11, 17, 0.07);
}

.contact-card-body {
  display: grid;
  gap: 0.2rem;
}

.contact-card-body strong {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-card-body span {
  color: var(--muted);
  font-size: 1.18rem;
}

.contact-card-social {
  grid-column: 1 / -1;
  grid-template-columns: none;
  display: grid;
  gap: 0.8rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-btn {
  gap: 0.5rem;
}

.social-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ── Cookie banner ──────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  z-index: 300;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
  padding: 1rem 1.1rem;
  color: var(--black);
  background: rgba(255, 250, 247, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 56px rgba(29, 29, 29, 0.18);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.cookie-banner p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ── Inline keyword trigger ─────────────────────────────── */

.inline-trigger {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  color: var(--red);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 160ms ease;
}

.inline-trigger:hover {
  color: var(--red-strong);
}

/* ── Info image modal ───────────────────────────────────── */

.info-modal {
  width: min(100% - 2rem, 880px);
  max-height: min(92vh, 880px);
  overflow: auto;
  padding: 0;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 72px rgba(29, 29, 29, 0.26);
}

.info-modal::backdrop {
  background: rgba(22, 18, 18, 0.55);
  backdrop-filter: blur(6px);
}

.info-modal-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(0.85rem, 2.5vw, 1.3rem);
}

.info-modal .modal-header {
  position: sticky;
  z-index: 1;
  top: 0;
  padding-bottom: 0.75rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.info-modal img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
}

/* ── Cookie modal ───────────────────────────────────────── */

.cookie-modal {
  width: min(100% - 2rem, 600px);
  padding: 0;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 72px rgba(29, 29, 29, 0.26);
}

.cookie-modal::backdrop {
  background: rgba(22, 18, 18, 0.55);
  backdrop-filter: blur(6px);
}

.cookie-modal form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3.5vw, 1.8rem);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-header h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  letter-spacing: 0.04em;
}

.modal-header button {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}

/* ── Program image modal ────────────────────────────────── */

.program-modal {
  width: min(100% - 2rem, 980px);
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 0;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 72px rgba(29, 29, 29, 0.26);
}

.program-modal::backdrop {
  background: rgba(22, 18, 18, 0.55);
  backdrop-filter: blur(6px);
}

.program-modal-shell {
  display: grid;
  gap: 1rem;
  padding: clamp(0.85rem, 2.5vw, 1.3rem);
}

.program-modal .modal-header {
  position: sticky;
  z-index: 1;
  top: 0;
  padding-bottom: 0.75rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.program-modal h2 {
  max-width: none;
}

.program-modal img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--white);
  border: 1px solid var(--line);
}

/* ── Policy pages ───────────────────────────────────────── */

.policy-page {
  background: var(--paper);
}

.policy-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.policy-hero h1 {
  max-width: 16ch;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.policy-content {
  display: grid;
  gap: 1.1rem;
  max-width: 840px;
  margin-inline: auto;
}

.policy-content h2 {
  max-width: none;
  margin-top: 0.7rem;
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.policy-content h3 {
  max-width: none;
  margin-top: 0.4rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  letter-spacing: 0.06em;
  color: var(--ink);
}

.treatment-table {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.treatment-table > div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.28fr) 1fr;
  border-bottom: 1px solid var(--line);
}

.treatment-table > div:last-child {
  border-bottom: none;
}

.treatment-table dt {
  display: flex;
  align-items: flex-start;
  padding: 0.6rem 0.9rem;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  hyphens: none;
}

.treatment-table dd {
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  color: var(--muted);
  font-size: 1.1rem;
  text-align: left;
  hyphens: none;
}

/* ── Reveal animations ──────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 80ms;
}

.reveal-delay-2 {
  transition-delay: 150ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — tablet (≤1080px)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .brand::after {
    display: none;
  }

  .nav-piva {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile nav: full-width dropdown, dark, minimal */
  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 0.4rem 0;
    background: rgba(22, 18, 18, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.85rem clamp(1.5rem, 4vw, 3.5rem);
    font-size: 0.76rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }

  .site-nav a.is-active {
    color: var(--red);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .two-column,
  .instructor-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-grid,
  .courses-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

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

  .footer-grid > div {
    grid-column: 1 / -1;
  }

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

  .contact-card-social {
    grid-column: 1 / -1;
  }

  .nav-piva-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.65rem clamp(1.5rem, 4vw, 3.5rem);
    padding: 0.38rem 0.8rem;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: var(--radius-btn);
  }

  .nav-piva-mobile::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    background: var(--white);
    -webkit-mask: url("../svg/greek/scroll-text.svg") center / contain no-repeat;
    mask: url("../svg/greek/scroll-text.svg") center / contain no-repeat;
  }

  /* Watermarks off on mobile — too intrusive on small screens */
  #chi-e::after,
  #sessioni::after {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — mobile (≤760px)
   ══════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  :root {
    --section-y: 2.5rem;
    --gutter: 1rem;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .hero-layout {
    min-height: 100svh;
    padding-top: 8rem;
    padding-bottom: 2rem;
  }

  .hero-actions,
  .cookie-actions,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .social-btn,
  .gallery-btn {
    width: auto;
  }

  .philosophy-grid,
  .courses-grid,
  .values-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .school-path-cards,
  .other-courses-cards {
    grid-template-columns: 1fr;
  }

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

  .treatment-table > div {
    grid-template-columns: 1fr;
  }

  .treatment-table dt {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .gallery-slide {
    width: min(72vw, 300px);
  }

  .gallery-slide img {
    height: 220px;
  }

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

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

  .section-heading.centered .eyebrow::after {
    display: none;
  }
}
