/* Circolo Culturale Agorà - Style CSS */
:root {
  --primary: #c2593f;
  --primary-dark: #a0432c;
  --primary-light: #fbeee9;
  --secondary: #1f2937;
  --accent: #d97706;
  --accent-light: #fef3c7;
  --bg-light: #fbfbf9;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 36px rgba(194, 89, 63, 0.16);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.top-bar {
  background-color: #111827;
  color: #d1d5db;
  font-size: 0.82rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-flex,
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
}
.top-bar-item svg,
.top-bar svg {
  color: var(--accent);
  vertical-align: middle;
}
.top-bar a,
.top-bar-item a {
  color: #f3f4f6 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.top-bar a:hover,
.top-bar-item a:hover {
  color: var(--accent-light) !important;
}
.top-bar a.top-bar-wa {
  color: #4ade80 !important;
}
.top-sep {
  color: rgba(255, 255, 255, 0.25);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.header-wrap, .nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo img {
  height: 88px;
  max-height: 92px;
  max-width: 320px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.brand-logo:hover img {
  transform: scale(1.02);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  text-decoration: none;
  color: #1e293b;
  font-weight: 500;
  font-size: 0.98rem;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}
.btn-cta-member {
  background: #15803d;
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 6px;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.25);
  transition: all 0.2s ease;
}
.btn-cta-member:hover {
  background: #166534;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(21, 128, 61, 0.35);
}

.mobile-toggle, .menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary);
  padding: 6px;
}

/* Container: wider max-width (1440px) */
.container {
  width: 94%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Panoramic Hero Section (NO OVERLAY, FULL PHOTO VISIBLE, LIGHT TEXT) */
.hero-pano-section {
  position: relative;
  width: 100%;
  height: clamp(480px, 44vw, 650px);
  min-height: 460px;
  overflow: hidden;
  background: #e2e8f0;
}
.hero-pano-slider {
  position: absolute;
  inset: 0;
}
.hero-pano-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.hero-pano-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

/* NO OVERLAY - photo remains 100% natural, crisp, entire and bright */
.hero-pano-overlay {
  display: none !important;
}

.hero-pano-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(35px, 5.5vw, 75px) 20px 20px;
}
.hero-tag-badge {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #15803d;
  margin-bottom: 12px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}
.hero-title-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.1rem, 3.7vw, 3.3rem);
  font-weight: 400; /* Testo leggero ed elegante */
  color: #0f172a;
  line-height: 1.22;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 2px 10px rgba(255, 255, 255, 0.85);
}
.hero-subtitle-main {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  font-weight: 300; /* Testo leggero ed arioso */
  color: #334155;
  line-height: 1.65;
  max-width: 800px;
  margin: 0 auto 26px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}
.hero-actions-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #15803d;
  color: #ffffff;
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.35);
  transition: all 0.25s ease;
}
.btn-hero-primary:hover {
  background: #166534;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.45);
}
.btn-hero-outline {
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}
.btn-hero-outline:hover {
  background: #ffffff;
  border-color: #0f172a;
  transform: translateY(-2px);
}

/* Slider Arrows & Dots */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.hero-arrow:hover {
  background: #ffffff;
  color: #15803d;
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.hero-dot.active {
  background: #15803d;
  border-color: #ffffff;
  transform: scale(1.25);
}

/* 4 Feature Columns below Hero (like online template cover.jpg) */
.features-strip-section {
  background: #ffffff;
  padding: 60px 0 50px;
  border-bottom: 1px solid #f0ede8;
}
.features-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}
.feature-box-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}
.feature-box-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid #dcfce7;
}
.feature-box-col:hover .feature-box-icon {
  transform: translateY(-4px);
  background: #16a34a;
  color: #ffffff;
}
.feature-box-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 10px;
}
.feature-box-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* 2-Column Intro Section (like cover.jpg) */
.intro-story-section {
  background: #faf7f4;
  padding: 80px 0;
  border-bottom: 1px solid #ede8e1;
}
.intro-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.intro-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 24px;
}
.intro-ornament span {
  height: 1px;
  width: 50px;
  background: #16a34a;
}
.intro-ornament svg {
  color: #16a34a;
}
.intro-story-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 500;
  color: #1e293b;
  line-height: 1.25;
}
.intro-story-p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 18px;
}
.intro-story-img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}
.intro-story-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Stats Strip Docked */
.stats-strip-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  padding: 24px 0;
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stats-strip-item {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--border);
}
.stats-strip-item:last-child {
  border-right: none;
}
.stats-strip-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stats-strip-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
}
.slide-caption p {
  font-size: 0.88rem;
  color: #e5e7eb;
}

/* Sections Common */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Categories Filter */
.courses-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--secondary);
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.course-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.course-img-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.course-card:hover .course-img-wrap img {
  transform: scale(1.08);
}
.course-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(194, 89, 63, 0.92);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.course-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--secondary);
}
.course-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}
.course-meta {
  font-size: 0.82rem;
  color: var(--secondary);
  background: #f9fafb;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.course-meta div {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.course-meta div svg {
  color: var(--primary);
  flex-shrink: 0;
}
.course-meta div:last-child {
  margin-bottom: 0;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.course-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 20px;
}

/* Events Section */
.events-section {
  background: #ffffff;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.event-card {
  background: #fafaf9;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s;
}
.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.event-img {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.event-card:hover .event-img img {
  transform: scale(1.08);
}
.event-content {
  padding: 24px;
}
.event-date {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-date svg {
  color: var(--primary);
  flex-shrink: 0;
}
.event-content h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary);
}
.event-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.event-ticket {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Spaces Section */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.space-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.space-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.space-card:hover img {
  transform: scale(1.08);
}
.space-body {
  padding: 22px;
}
.space-body h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--secondary);
}
.space-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Membership CTA Box */
.member-banner {
  background: linear-gradient(135deg, #c2593f 0%, #8b2b16 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 50px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 60px;
}
.member-info h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
}
.member-info p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 600px;
}
.btn-white {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-white:hover {
  background: #f9fafb;
  transform: translateY(-2px);
}

/* Testimonials */
.testimonials-section {
  background: #f4f4f0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.testimonial-quote {
  font-style: italic;
  color: var(--secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.testimonial-author {
  font-weight: 700;
  color: var(--secondary);
}
.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: #d1d5db;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col ul a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 6px;
}
.modal-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--secondary);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 89, 63, 0.15);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .member-banner {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


@media (min-width: 1440px) {
  .container {
    max-width: 1440px !important;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Demo Top Bar */
.demo-bar-top {
  background: #111827;
  color: #9ca3af;
  font-size: 0.78rem;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2937;
  position: relative;
  z-index: 1002;
}
.demo-bar-top a {
  color: #f97316;
  text-decoration: none;
  font-weight: 600;
}
.demo-bar-top a:hover {
  text-decoration: underline;
}

/* Page Hero Banner with Hero Photo (Bright Natural Landscape, Zero Dark Overlay, Light Typography) */
.page-hero {
  position: relative;
  background-image: url('images/41854.jpg');
  background-position: center 36%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #0f172a;
  padding: 68px 0 54px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 44px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.5) 100%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 500;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95), 0 2px 10px rgba(255, 255, 255, 0.85);
}
.page-hero p {
  color: #334155;
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.65;
  max-width: 820px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  color: #475569;
  margin-bottom: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}
.breadcrumb a {
  color: #15803d;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #166534;
  text-decoration: underline;
}

/* Course Detail Layout */
.course-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}
.course-detail-main {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.course-detail-img-box {
  width: 100%;
  height: 380px;
  position: relative;
  background: #e5e7eb;
}
.course-detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-detail-content {
  padding: 36px;
}
.course-sidebar-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  position: sticky;
  top: 90px;
}

@media (max-width: 900px) {
  .course-detail-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PAGE SPECIFIC STYLES (Consolidated from in-page <style> tags)
   ========================================================================== */

/* Extracted from chi-siamo.php */
.story-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      align-items: center;
      margin: 60px 0;
    }
    @media (max-width: 900px) {
      .story-section {
        grid-template-columns: 1fr;
        gap: 30px;
      }
    }
    .story-img {
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    }
    .story-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .values-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin: 50px 0;
    }
    @media (max-width: 800px) {
      .values-grid {
        grid-template-columns: 1fr;
      }
    }
    .value-box {
      background: #fff;
      padding: 30px;
      border-radius: 16px;
      border: 1px solid #ebe5df;
      box-shadow: 0 4px 15px rgba(0,0,0,0.04);
      text-align: center;
    }
    .value-icon {
      font-size: 2.2rem;
      margin-bottom: 14px;
      display: inline-block;
    }

/* Extracted from spazi.php */
.space-detail-card {
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid #ebe5df;
      margin-bottom: 40px;
      box-shadow: 0 4px 20px rgba(0,0,0,0.04);
      display: grid;
      grid-template-columns: 420px 1fr;
    }
    @media (max-width: 900px) {
      .space-detail-card {
        grid-template-columns: 1fr;
      }
    }
    .space-img-wrap {
      position: relative;
      min-height: 280px;
    }
    .space-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .space-body {
      padding: 32px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .space-meta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin: 20px 0;
      background: #faf7f4;
      padding: 18px;
      border-radius: 12px;
    }
    @media (max-width: 600px) {
      .space-meta-grid {
        grid-template-columns: 1fr;
      }
    }
    .spec-item {
      font-size: 0.9rem;
    }
    .spec-item span {
      display: block;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #888;
      font-weight: 600;
    }
    .spec-item strong {
      color: #1b2838;
    }

/* Extracted from tesseramento.php */
.tessera-card-preview {
      background: linear-gradient(135deg, #1b2838 0%, #2a3f5a 100%);
      color: #fff;
      padding: 30px;
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.15);
      border: 1px solid rgba(255,255,255,0.1);
      position: relative;
      overflow: hidden;
      margin-bottom: 30px;
    }
    .tessera-card-preview::after {
      content: '';
      position: absolute;
      top: -40px;
      right: -40px;
      width: 140px;
      height: 140px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(212,91,62,0.3) 0%, transparent 70%);
    }
    .tessera-badge {
      display: inline-block;
      background: #d45b3e;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 4px 10px;
      border-radius: 20px;
      margin-bottom: 12px;
    }
    .perks-list {
      list-style: none;
      padding: 0;
      margin: 20px 0;
    }
    .perks-list li {
      padding: 10px 0;
      border-bottom: 1px solid #f0ede8;
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 0.95rem;
      color: #444;
    }
    .perks-list li strong {
      color: #1b2838;
    }


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Safeguard Rules */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
