/* ── Google Fonts vengono caricati via functions.php enqueue ── */

/* ── Reset & Variabili ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
:root {
  --navy: #0f2542;
  --brand: #3e73b6;
  --brand-light: #c5dbf0;
  --brand-2: #1d4880;
  --blue: #1d4880;
  --gold: #3e73b6;
  --bg: oklch(98.5% 0.008 240);
  --bg2: oklch(96% 0.012 240);
  --text: #0f2542;
  --text-muted: #5b6b80;
  --border: oklch(90% 0.015 240);
  --card-shadow: 0 2px 16px oklch(20% 0.05 240 / 0.08);
  --radius: 10px;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body) !important;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); }
::selection { background: oklch(60% 0.2 240 / 0.25); }

/* ── Layout ────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .container { padding: 0 36px; } }

.section-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.section-h2 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px);
  color: var(--navy); line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-p { color: var(--text-muted); font-size: 17px; max-width: 600px; line-height: 1.7; margin-bottom: 48px; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  background: var(--blue); color: white; border: none;
  padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px oklch(50% 0.25 240 / 0.3);
  text-decoration: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px oklch(50% 0.25 240 / 0.4); color: white; text-decoration: none; }
.btn-ghost {
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: white; text-decoration: none; }
.btn-outline-navy {
  background: none; border: 2px solid var(--navy); color: var(--navy);
  padding: 13px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none; cursor: pointer;
}
.btn-outline-navy:hover { background: var(--navy); color: white; text-decoration: none; }

/* ── Navbar ────────────────────────────────────────────────── */
.iris-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: white; border-bottom: 1px solid var(--border);
  height: 72px; display: flex; align-items: center;
}
.iris-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.iris-nav-logo {
  font-family: var(--font-display); font-size: 22px; color: var(--navy);
  text-decoration: none; font-weight: 400; letter-spacing: -0.3px;
}
.iris-nav-logo span { color: var(--blue); }
.iris-nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.iris-nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color 0.15s;
}
.iris-nav-links a:hover, .iris-nav-links a.active { color: var(--navy); }
.iris-nav-cta {
  background: var(--blue); color: white; border: none;
  padding: 10px 22px; border-radius: 7px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: opacity 0.2s;
}
.iris-nav-cta:hover { opacity: 0.85; color: white; text-decoration: none; }
.iris-nav-burger { display: none; background: none; border: none; padding: 4px; cursor: pointer; }
@media (max-width: 900px) {
  .iris-nav-links { display: none; }
  .iris-nav-burger { display: block; }
  .iris-nav-cta { display: none; }
}

/* ── Page offset for fixed navbar ─────────────────────────── */
body { padding-top: 72px; }

/* ── Page Header ───────────────────────────────────────────── */
.page-header-iris {
  position: relative; overflow: hidden;
  background: var(--navy); color: white; padding: 80px 40px 80px;
}
.page-header-iris::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(15,37,66,0.7), rgba(15,37,66,0.85));
}
.page-header-iris img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.page-header-inner {
  position: relative; z-index: 1; max-width: 800px; margin: 0 auto;
}
.page-header-tag { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.page-header-h1 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 58px); color: white; line-height: 1.1; margin-bottom: 16px; }
.page-header-sub { color: rgba(255,255,255,0.75); font-size: 18px; line-height: 1.65; max-width: 640px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero { background: white; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.hero-left {
  background: var(--brand); padding: 80px 60px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-left::after {
  content: ''; position: absolute; right: -120px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: oklch(100% 0 0 / 0.06); pointer-events: none;
}
.hero-left::before {
  content: ''; position: absolute; left: -80px; top: -80px; width: 220px; height: 220px;
  border-radius: 50%; background: oklch(100% 0 0 / 0.04); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 540px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(100% 0 0 / 0.12); border: 1px solid oklch(100% 0 0 / 0.2);
  color: rgba(255,255,255,0.9); font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px; letter-spacing: 0.03em;
}
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.hero-h1 {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 64px);
  color: white; line-height: 1.05; letter-spacing: -1.2px; margin-bottom: 22px;
}
.hero-h1 em { color: var(--brand-light); font-style: italic; }
.hero-p { color: rgba(255,255,255,0.85); font-size: 17px; line-height: 1.65; margin-bottom: 32px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; color: var(--brand); padding: 14px 26px;
  border-radius: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
}
.hero-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); color: var(--brand); text-decoration: none; }
.hero-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: white; padding: 14px 22px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid oklch(100% 0 0 / 0.3); border-radius: 10px;
  transition: background 0.15s;
}
.hero-cta-ghost:hover { background: oklch(100% 0 0 / 0.1); color: white; text-decoration: none; }
.hero-stats-row {
  display: flex; gap: 32px; margin-top: 44px;
  padding-top: 28px; border-top: 1px solid oklch(100% 0 0 / 0.18);
}
.hero-stat-val { font-size: 26px; font-weight: 700; color: white; font-family: var(--font-display); line-height: 1; }
.hero-stat-lbl { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.hero-right { background: var(--brand-2); position: relative; overflow: hidden; }
.hero-right img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; display: block; }
.hero-quote {
  position: absolute; bottom: 36px; left: 36px; right: 36px;
  background: white; border-radius: 14px; padding: 24px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28); max-width: 420px;
}
.hero-quote-stars { display: flex; gap: 2px; margin-bottom: 10px; color: #f0a020; }
.hero-quote-text { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--navy); line-height: 1.45; margin-bottom: 14px; }
.hero-quote-author { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.hero-quote-author strong { color: var(--navy); font-weight: 700; display: block; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { padding: 64px 32px; }
  .hero-right { display: none; }
  .hero-stats-row { flex-wrap: wrap; gap: 20px 32px; }
}

/* ── Photo Strip ───────────────────────────────────────────── */
.photo-strip { padding: 100px 40px; background: white; }
.ps-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.ps-photos {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px;
  gap: 16px;
}
.ps-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.ps-photo-1 { grid-column: 1; grid-row: 1 / 3; height: 416px; }
.ps-checks { list-style: none; margin: 24px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ps-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); }
.ps-check-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: oklch(95% 0.05 240); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; color: var(--blue);
}
@media (max-width: 900px) { .ps-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ── Categories ────────────────────────────────────────────── */
.cats { padding: 100px 0; background: var(--bg2); }
.cats-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; gap: 20px; padding: 0 40px; }
.cats-nav { display: flex; gap: 10px; flex-shrink: 0; }
.cats-nav-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: background 0.2s, color 0.2s;
}
.cats-nav-btn:hover { background: var(--navy); color: white; border-color: var(--navy); }
.cats-slider-wrap { overflow: hidden; padding: 0; }
.cats-grid--slider {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 16px;
  scroll-padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px));
}
.cats-grid--slider::-webkit-scrollbar { display: none; }
.cats-grid--slider .cat-card:first-of-type { margin-left: max(40px, calc((100vw - 1200px) / 2 + 40px)); }
.cats-grid--slider .cat-card:last-of-type  { margin-right: max(40px, calc((100vw - 1200px) / 2 + 40px)); }
.cats-slider-spacer { display: none; }
.cats-grid--centered {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
}
.cat-card {
  position: relative; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4/5; cursor: pointer; text-decoration: none;
  transition: transform 0.3s;
}
.cats-grid--slider .cat-card { flex: 0 0 280px; scroll-snap-align: start; }
.cats-grid--centered .cat-card { flex: 0 0 280px; }
.cat-card:hover { transform: translateY(-6px); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,37,64,0.95) 100%);
}
.cat-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; color: white; }
.cat-count {
  display: inline-block; background: var(--gold); color: white;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
  margin-bottom: 10px; letter-spacing: 0.05em;
}
.cat-name { font-family: var(--font-display); font-size: 22px; line-height: 1.2; margin-bottom: 4px; }
.cat-desc { font-size: 13px; color: rgba(255,255,255,0.75); }
@media (max-width: 600px) {
  .cats-header { padding: 0 36px; margin-bottom: 28px; }
  .cats-grid--slider { scroll-padding-left: 36px; }
  .cats-grid--slider .cat-card { flex: 0 0 75vw; }
  .cats-grid--slider .cat-card:first-of-type { margin-left: 36px; }
  .cats-grid--slider .cat-card:last-of-type  { margin-right: 36px; }
  /* Su mobile anche il centrato diventa slider */
  .cats-grid--centered {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    justify-content: flex-start; padding: 0 0 16px;
  }
  .cats-grid--centered::-webkit-scrollbar { display: none; }
  .cats-grid--centered .cat-card { flex: 0 0 75vw; scroll-snap-align: start; }
  .cats-grid--centered .cat-card:first-child { margin-left: 36px; }
  .cats-grid--centered .cat-card:last-child  { margin-right: 36px; }
}

/* ── Featured Courses ──────────────────────────────────────── */
.featured { padding: 100px 40px; background: white; }
.feat-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; flex-wrap: wrap; gap: 20px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.fcourse {
  background: white; border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.fcourse:hover { box-shadow: var(--card-shadow); transform: translateY(-4px); text-decoration: none; color: inherit; }
.fcourse-img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.fcourse-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.fcourse:hover .fcourse-img { transform: scale(1.06); }
.fcourse-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; letter-spacing: 0.05em;
  background: var(--blue); color: white;
}
.fcourse-badge.gold { background: var(--gold); }
.fcourse-badge.new { background: #e83e4a; }
.fcourse-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.fcourse-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.fcourse-title { font-family: var(--font-display); font-size: 19px; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.fcourse-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.fcourse-meta { display: flex; gap: 16px; margin-bottom: 14px; }
.fcourse-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.fcourse-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.fcourse-price { font-size: 20px; font-weight: 700; color: var(--navy); }
.fcourse-cta { font-size: 13px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* ── About Preview ─────────────────────────────────────────── */
.about-prev { padding: 100px 40px; background: var(--navy); color: white; }
.ap-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.ap-photo-stack { position: relative; }
.ap-photo-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.ap-photo-overlay { position: absolute; bottom: -40px; right: -40px; width: 220px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border: 6px solid var(--navy); }
.ap-tag { color: var(--gold); }
.ap-h2 { color: white; }
.ap-p { color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.75; margin-bottom: 24px; }
.ap-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; margin-bottom: 32px; }
.ap-pillar-num { font-family: var(--font-display); font-size: 38px; color: var(--gold); line-height: 1; }
.ap-pillar-lbl { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
@media (max-width: 900px) { .ap-grid { grid-template-columns: 1fr; gap: 60px; } .ap-photo-overlay { display: none; } }

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials { padding: 100px 40px; background: var(--bg); }
.testi-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; max-width: 1200px; margin: 0 auto; }
.testi-dots { display: flex; flex-direction: column; gap: 8px; }
.testi-dot-btn {
  background: none; border: none; text-align: left; padding: 14px 18px;
  border-radius: 8px; cursor: pointer; transition: background 0.2s;
  border-left: 3px solid transparent; width: 100%;
}
.testi-dot-btn.active { background: white; border-left-color: var(--blue); box-shadow: var(--card-shadow); }
.testi-dot-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.testi-dot-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.testi-card { background: white; border-radius: 16px; border: 1px solid var(--border); padding: 48px; box-shadow: var(--card-shadow); }
.testi-stars { display: flex; gap: 4px; margin-bottom: 20px; color: #f0a020; font-size: 18px; }
.testi-quote { font-family: var(--font-display); font-size: 24px; line-height: 1.55; color: var(--navy); margin-bottom: 28px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: white; font-family: var(--font-display);
  flex-shrink: 0;
}
.testi-author-name { font-size: 15px; font-weight: 600; color: var(--navy); }
.testi-author-role { font-size: 13px; color: var(--text-muted); }
@media (max-width: 768px) { .testi-layout { grid-template-columns: 1fr; } .testi-dots { flex-direction: row; flex-wrap: wrap; } }

/* ── CTA Band ──────────────────────────────────────────────── */
.cta-band {
  padding: 80px 40px; position: relative; overflow: hidden;
  background: linear-gradient(rgba(62,115,182,0.85), rgba(15,37,66,0.92));
  background-size: cover; background-position: center;
}
.cta-inner { max-width: 1000px; margin: 0 auto; text-align: center; color: white; }
.cta-h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); margin-bottom: 16px; line-height: 1.15; }
.cta-p { color: rgba(255,255,255,0.8); font-size: 18px; line-height: 1.6; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────── */
.iris-footer { background: var(--navy); color: white; padding: 60px 40px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto 48px; }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: white; margin-bottom: 14px; }
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.65; max-width: 280px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Banner In Evidenza (archivio corsi) ──────────────────── */
.ev-strip { padding: 64px 40px; background: var(--bg2); border-bottom: 1px solid var(--border); }
.ev-strip-head { max-width: 1200px; margin: 0 auto 36px; }
.ev-strip-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); background: white; border: 1px solid var(--brand-light); padding: 5px 14px; border-radius: 100px; margin-bottom: 10px; }
.ev-strip-h2 { font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 30px); color: var(--navy); margin: 0; }
.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) { .ev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ev-grid { grid-template-columns: 1fr; } }
.ev-slider-outer { position: relative; max-width: 1200px; margin: 0 auto; }
.ev-slider { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ev-slider::-webkit-scrollbar { display: none; }
.ev-slide { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
.ev-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid var(--border); box-shadow: var(--card-shadow); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; color: var(--navy); transition: .15s; }
.ev-arrow:hover { background: var(--brand); color: white; border-color: var(--brand); }
.ev-prev { left: -20px; }
.ev-next { right: -20px; }
@media (max-width: 900px) { .ev-slide { flex: 0 0 calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .ev-slide { flex: 0 0 100%; } }

/* ── Catalog / Archive ─────────────────────────────────────── */
.catalog { padding: 80px 40px 100px; background: var(--bg); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.filter-btn {
  padding: 9px 20px; border-radius: 100px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; background: white; color: var(--text-muted);
  transition: all 0.18s; cursor: pointer; text-decoration: none; display: inline-block;
}
.filter-btn:hover, .filter-btn.active { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: white; box-shadow: 0 2px 12px oklch(50% 0.25 240 / 0.3); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .course-grid { grid-template-columns: 1fr; } }
.course-card {
  background: white; border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.course-card:hover { box-shadow: var(--card-shadow); transform: translateY(-4px); }
.course-img-wrap { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.course-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.course-card:hover .course-img { transform: scale(1.06); }
.course-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; background: var(--blue); color: white; letter-spacing: 0.05em;
}
.course-badge.gold { background: var(--gold); }
.course-badge.new { background: #e83e4a; }
.course-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.course-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.course-title { font-family: var(--font-display); font-size: 19px; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.course-desc { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin-bottom: 14px; flex: 1; }
.course-meta { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.course-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-muted); }
.course-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.course-price { font-size: 20px; font-weight: 700; color: var(--navy); }
.course-cta {
  background: none; border: 1px solid var(--blue); color: var(--blue);
  padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 600;
  transition: background 0.15s, color 0.15s; text-decoration: none; display: inline-block;
}
.course-cta:hover { background: var(--blue); color: white; text-decoration: none; }

/* ── How It Works ──────────────────────────────────────────── */
.how { padding: 100px 40px; background: white; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; }
.how-card { background: white; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.how-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.how-body { padding: 24px; position: relative; }
.how-num { position: absolute; top: -28px; right: 20px; font-family: var(--font-display); font-size: 56px; color: var(--gold); line-height: 1; opacity: 0.95; }
.how-title { font-family: var(--font-display); font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.how-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
@media (max-width: 900px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .how-grid { grid-template-columns: 1fr; } }

/* ── Single Corso ──────────────────────────────────────────── */
.single-corso-wrap { padding: 60px 40px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: start; }
.single-corso-img { width: 100%; height: 420px; object-fit: cover; object-position: center; border-radius: 14px; margin-bottom: 32px; box-shadow: var(--card-shadow); display: block; }
.single-corso-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.single-corso-meta-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.single-corso-content { font-size: 16px; line-height: 1.8; color: var(--text); }
.single-corso-content h2, .single-corso-content h3 { font-family: var(--font-display); color: var(--navy); margin: 24px 0 12px; }
.corso-sidebar { background: white; border-radius: 14px; border: 1px solid var(--border); padding: 28px; box-shadow: var(--card-shadow); position: sticky; top: 90px; }
.corso-sidebar-price { font-size: 32px; font-weight: 700; color: var(--navy); font-family: var(--font-display); margin-bottom: 4px; }
.corso-sidebar-label { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.corso-sidebar-detail { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.corso-sidebar-detail:last-of-type { border-bottom: none; }
.corso-sidebar-detail .label { color: var(--text-muted); }
.corso-sidebar-detail .val { font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .single-corso-wrap { grid-template-columns: 1fr; } .corso-sidebar { position: static; } }
@media (max-width: 600px) {
  .single-corso-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
  }
}

/* ── Contact Form 7 override ───────────────────────────────── */
.contact-section { padding: 80px 40px 100px; background: white; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; max-width: 1200px; margin: 0 auto; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-detail-icon { width: 44px; height: 44px; border-radius: 8px; background: oklch(95% 0.05 240); display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.contact-detail-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-detail-val { font-size: 15px; font-weight: 600; color: var(--navy); }
.form-card { background: var(--bg); border-radius: 16px; border: 1px solid var(--border); padding: 36px; }
.form-card .wpcf7 p { margin-bottom: 14px; }
.form-card .wpcf7 label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-card .wpcf7 input[type=text],
.form-card .wpcf7 input[type=email],
.form-card .wpcf7 input[type=tel],
.form-card .wpcf7 textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  background: white; transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
.form-card .wpcf7 input:focus, .form-card .wpcf7 textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px oklch(60% 0.18 240 / 0.12); }
.form-card .wpcf7 textarea { height: 110px; resize: vertical; }
.form-card .wpcf7 input[type=submit] {
  width: 100%; padding: 14px; border: none; border-radius: 8px;
  background: var(--blue); color: white; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px oklch(50% 0.2 240 / 0.3);
}
.form-card .wpcf7 input[type=submit]:hover { opacity: 0.88; transform: translateY(-1px); }
.wpcf7-not-valid-tip { color: #e03e3e; font-size: 12px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ── Map Section ───────────────────────────────────────────── */
.map-section { background: var(--bg2); }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
.map-info { padding: 80px; display: flex; flex-direction: column; justify-content: center; background: var(--navy); color: white; }
.map-info h2 { color: white; }
.map-info-tag { color: var(--gold); }
.map-info p { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.map-hours { background: oklch(100% 0 0 / 0.06); border: 1px solid oklch(100% 0 0 / 0.1); border-radius: 10px; padding: 20px; margin-top: 16px; }
.map-hours-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.85); }
.map-hours-row.closed { color: rgba(255,255,255,0.4); }
.map-photo { background-size: cover; background-position: center; min-height: 480px; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } .map-info { padding: 60px 32px; } .map-photo { min-height: 320px; } }

/* ── Chi Siamo Sections ────────────────────────────────────── */
.story { padding: 100px 40px; background: white; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
.story-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: var(--card-shadow); }
.story p { color: var(--text-muted); font-size: 17px; line-height: 1.8; margin-bottom: 18px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 48px; } }

.values { padding: 100px 40px; background: var(--bg2); }
.vals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; }
.val-card { background: white; border-radius: 14px; padding: 36px; border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s; }
.val-card:hover { box-shadow: var(--card-shadow); transform: translateY(-3px); }
.val-icon { font-family: var(--font-display); font-style: italic; font-size: 32px; color: var(--brand); margin-bottom: 12px; line-height: 1; }
.val-title { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.val-desc { font-size: 15px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 700px) { .vals-grid { grid-template-columns: 1fr; } }

.team { padding: 100px 40px; background: white; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; max-width: 1200px; margin: 0 auto; }
.team-card { text-align: left; }
.team-photo-wrap { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.team-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.team-card:hover .team-photo { transform: scale(1.05); }
.team-name { font-family: var(--font-display); font-size: 19px; color: var(--navy); }
.team-role { font-size: 13px; color: var(--blue); font-weight: 600; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .team-grid { grid-template-columns: 1fr; } }

.hq { padding: 100px 40px; background: var(--navy); color: white; }
.hq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.hq-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.hq h2 { color: white; }
.hq-tag { color: var(--gold); }
.hq-p { color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.75; margin-bottom: 28px; }
.hq-locs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hq-loc { background: oklch(100% 0 0 / 0.06); border: 1px solid oklch(100% 0 0 / 0.1); border-radius: 10px; padding: 18px; }
.hq-loc--wide { grid-column: 1 / -1; }
.hq-loc-name { font-family: var(--font-display); font-size: 17px; color: white; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.hq-loc-badge { font-family: var(--font-body); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--gold); color: #1a1a1a; border-radius: 4px; padding: 2px 8px; }
.hq-loc-addr { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.hq-loc-hours { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 8px; }
@media (max-width: 900px) { .hq-grid { grid-template-columns: 1fr; } }

/* ── CF7 corso form sidebar ────────────────────────────────── */
.corso-form-wrap { margin-top: 32px; }
.corso-form-wrap h3 { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.corso-form-wrap .wpcf7 p { margin-bottom: 14px; }
.corso-form-wrap .wpcf7 label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.corso-form-wrap .wpcf7 input[type=text],
.corso-form-wrap .wpcf7 input[type=email],
.corso-form-wrap .wpcf7 input[type=tel],
.corso-form-wrap .wpcf7 textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border); border-radius: 7px;
  font-family: var(--font-body); font-size: 14px; color: var(--text); background: white; outline: none;
  transition: border-color 0.15s;
}
.corso-form-wrap .wpcf7 input:focus, .corso-form-wrap .wpcf7 textarea:focus { border-color: var(--blue); }
.corso-form-wrap .wpcf7 textarea { height: 90px; resize: vertical; }
.corso-form-wrap .wpcf7 input[type=submit] {
  width: 100%; padding: 13px; border: none; border-radius: 8px;
  background: var(--blue); color: white; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* ── Understrap override: rimuove layout container default ─── */
#page,
#page .wrap,
#content,
.site-content,
.site-content > .wrap,
.entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#page .wrap { max-width: none; padding: 0; }
.site-content { padding: 0; }

/* ── Offset navbar fissa ──────────────────────────────────── */
/* (già su body) — gestione admin bar WP quando loggati */
body.admin-bar { padding-top: 72px; }
body.admin-bar .iris-nav { top: 32px; }

/* ── Padding sezioni su mobile ────────────────────────────── */
@media (max-width: 600px) {
  /* Sezioni senza .container interno: padding sul wrapper */
  .photo-strip, .about-prev, .cta-band,
  .contact-section, .story, .hq, .team {
    padding-left: 36px;
    padding-right: 36px;
  }
  /* Sezioni con .container interno: padding = 0, ci pensa .container */
  .cats, .featured, .testimonials, .catalog, .how, .ev-strip {
    padding-left: 0;
    padding-right: 0;
  }
  /* .values: header ha .container, griglia no — padding sulla sezione */
  .values { padding-left: 36px; padding-right: 36px; }
  .values .container { padding-left: 0; padding-right: 0; }
  .iris-footer { padding-left: 16px; padding-right: 16px; }
  .single-corso-wrap { padding-left: 16px; padding-right: 16px; }
  .page-header-iris { padding-left: 16px; padding-right: 16px; }
}
