/* ===== KARATE SHOTOKAN UMBERTIDE - Theme CSS ===== */

/* --- Reset & Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --aka: #C41E3A;
  --aka-dark: #9B1B30;
  --sumi: #1A1A1A;
  --sumi-light: #2D2D2D;
  --shiro: #FAFAF8;
  --washi: #F5F3EF;
  --stone: #8C8C8C;
  --stone-light: #B8B8B8;
  --gold: #C9A96E;
  --shadow: rgba(0,0,0,0.08);
  --font-jp: 'Noto Serif JP', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--sumi); background: var(--shiro); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 30px var(--shadow); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo .custom-logo-link { display: flex; }
.nav-logo .custom-logo { width: 44px; height: 44px; object-fit: contain; }
.nav-logo-icon {
  width: 44px; height: 44px; background: var(--sumi); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-jp); font-size: 1.1rem; font-weight: 700;
}
.nav-logo-text { font-family: var(--font-jp); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; }
.nav-logo-sub { font-size: 0.65rem; color: var(--stone); font-weight: 400; letter-spacing: 0.15em; text-transform: uppercase; }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links li { list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sumi-light);
  position: relative; padding: 0.25rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--aka); transition: var(--transition);
}
.nav-links a:hover { color: var(--aka); }
.nav-links a:hover::after { width: 100%; }

.nav-links .btn-cta,
.btn-cta {
  background: var(--aka) !important; color: white !important;
  padding: 0.6rem 1.5rem; border-radius: 2px;
  font-weight: 600; letter-spacing: 0.05em;
}
.btn-cta::after { display: none !important; }
.btn-cta:hover { background: var(--aka-dark) !important; transform: translateY(-1px); }

/* Mobile menu */
.nav-mobile { display: none; cursor: pointer; z-index: 1001; }
.hamburger { width: 24px; height: 18px; position: relative; }
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--sumi);
  position: absolute; left: 0; transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.nav-mobile-menu {
  display: none; background: rgba(250,250,248,0.98);
  padding: 1rem 2rem 2rem; border-top: 1px solid rgba(0,0,0,0.05);
}
.nav-mobile-menu.active { display: block; }
.nav-mobile-links { list-style: none; }
.nav-mobile-links li { border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-mobile-links a {
  display: block; padding: 0.8rem 0;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-mobile-links a:hover { color: var(--aka); }

/* --- Hero --- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: var(--shiro);
  background-size: cover; background-position: center;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(0,0,0,0.08) 80px, rgba(0,0,0,0.08) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(0,0,0,0.08) 80px, rgba(0,0,0,0.08) 81px);
}
.hero-accent-left { position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--aka); }
.hero-accent-top { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--aka) 0%, transparent 60%); }
.hero-overlay { position: absolute; inset: 0; background: rgba(250,250,248,0.85); }
.hero-content { text-align: center; color: var(--sumi); z-index: 2; padding: 2rem; }
.hero-kanji { font-family: var(--font-jp); font-size: 6rem; font-weight: 300; opacity: 0.06; margin-bottom: -1.5rem; letter-spacing: 0.3em; color: var(--sumi); }
.hero-title { font-family: var(--font-jp); font-size: 3.5rem; font-weight: 300; letter-spacing: 0.08em; margin-bottom: 0.5rem; line-height: 1.2; color: var(--sumi); }
.hero-title strong { font-weight: 700; color: var(--aka); }
.hero-divider { width: 60px; height: 2px; background: var(--aka); margin: 1.5rem auto; }
.hero-subtitle { font-size: 0.9rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--stone); font-weight: 300; margin-bottom: 0.5rem; }
.hero-location { font-size: 0.8rem; color: var(--stone-light); letter-spacing: 0.1em; margin-bottom: 2.5rem; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--aka); color: white;
  padding: 1rem 2.5rem; font-size: 0.8rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; border: none; cursor: pointer;
}
.hero-cta:hover { background: var(--aka-dark); color: white; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196,30,58,0.3); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--stone); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll-line { width: 1px; height: 40px; background: var(--stone); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* --- Page Hero (for inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--sumi) 0%, var(--sumi-light) 100%);
  padding: 8rem 2rem 4rem; text-align: center; color: white;
}
.page-hero-blog { padding-bottom: 3rem; }
.page-hero-title { font-family: var(--font-jp); font-size: 2.5rem; font-weight: 300; letter-spacing: 0.05em; }
.page-hero-title strong { font-weight: 700; }
.page-hero-desc { color: var(--stone-light); font-size: 0.9rem; margin-top: 0.5rem; }

/* --- Sections --- */
.section { padding: 6rem 2rem; }
.section-dark { background: var(--sumi); color: white; }
.section-washi { background: var(--washi); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .kanji, .kanji { font-family: var(--font-jp); font-size: 2.5rem; opacity: 0.08; margin-bottom: -0.5rem; letter-spacing: 0.2em; }
.section-dark .kanji { opacity: 0.15; color: white; }
.section-header h2 { font-family: var(--font-jp); font-size: 2rem; font-weight: 300; letter-spacing: 0.05em; }
.section-header h2 strong { font-weight: 700; }
.section-header .divider, .divider { width: 40px; height: 2px; background: var(--aka); margin: 1rem auto; }
.section-header p { color: var(--stone); font-size: 0.9rem; max-width: 600px; margin: 0 auto; line-height: 1.8; }
.section-dark .section-header p { color: var(--stone-light); }

/* --- About --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--washi); }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-image-placeholder {
  width: 100%; height: 100%; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--sumi) 0%, var(--sumi-light) 100%);
  color: var(--stone); font-size: 0.8rem; letter-spacing: 0.1em; text-align: center; padding: 2rem;
}
.about-text h3 { font-family: var(--font-jp); font-size: 1.6rem; font-weight: 300; margin-bottom: 1.5rem; line-height: 1.4; }
.about-text h3 strong { font-weight: 700; }
.about-text p { color: var(--sumi-light); font-size: 0.95rem; line-height: 1.9; margin-bottom: 1rem; }
.about-maestro {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.08);
}
.about-maestro-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sumi); display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-jp); font-size: 1.2rem;
}
.about-maestro-info span { display: block; font-size: 0.75rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; }
.about-maestro-info strong { font-family: var(--font-jp); font-size: 1.1rem; }

/* --- Corsi --- */
.corsi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.corso-card {
  background: var(--sumi-light); padding: 2.5rem 2rem;
  position: relative; overflow: hidden; transition: var(--transition);
}
.corso-card:hover { transform: translateY(-4px); }
.corso-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--aka); }
.corso-card .icon { margin-bottom: 1.5rem; opacity: 0.6; }
.corso-card .icon svg { width: 40px; height: 40px; stroke: var(--aka); fill: none; stroke-width: 1.5; }
.corso-card h3 { font-family: var(--font-jp); font-size: 1.2rem; font-weight: 600; margin-bottom: 0.75rem; color: white; }
.corso-card p { font-size: 0.85rem; color: var(--stone-light); line-height: 1.8; }
.corso-card .age {
  display: inline-block; margin-top: 1rem; padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light);
}

/* --- Video --- */
.video-section { padding: 6rem 2rem; background: var(--sumi); }
.video-wrapper { max-width: 900px; margin: 0 auto; position: relative; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--stone); gap: 1rem; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.video-play {
  width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer;
}
.video-play:hover { border-color: var(--aka); background: rgba(196,30,58,0.15); }
.video-play svg { width: 28px; height: 28px; fill: white; margin-left: 4px; }

/* --- Orari --- */
.orari-wrapper { max-width: 700px; margin: 0 auto; background: white; box-shadow: 0 4px 40px var(--shadow); }
.orari-header { background: var(--sumi); color: white; padding: 2rem; text-align: center; }
.orari-header h3 { font-family: var(--font-jp); font-size: 1.3rem; font-weight: 300; }
.orari-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2rem; border-bottom: 1px solid rgba(0,0,0,0.05); transition: var(--transition);
}
.orari-row:hover { background: var(--washi); }
.orari-row:last-child { border-bottom: none; }
.orari-day { font-family: var(--font-jp); font-weight: 600; font-size: 1rem; }
.orari-time { font-size: 0.9rem; color: var(--stone); display: flex; align-items: center; gap: 0.5rem; }
.orari-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aka); }
.orari-note { text-align: center; padding: 1.5rem 2rem; font-size: 0.8rem; color: var(--stone); background: var(--washi); }
.orari-note strong { color: var(--sumi); }

/* --- Blog Cards --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: white; overflow: hidden; box-shadow: 0 2px 20px var(--shadow); transition: var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0,0,0,0.12); }
.blog-card-link { display: block; color: inherit; }
.blog-card-img { height: 220px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--sumi), var(--sumi-light)); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 0.75rem; letter-spacing: 0.1em; text-align: center; padding: 1rem;
}
.blog-card-date {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--aka); color: white;
  padding: 0.5rem 0.75rem; text-align: center;
  font-size: 0.7rem; line-height: 1.3;
}
.blog-card-date strong { display: block; font-size: 1.4rem; font-weight: 700; }
.blog-card-body { padding: 1.5rem; }
.blog-card-category { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--aka); font-weight: 600; margin-bottom: 0.5rem; }
.blog-card-body h3 { font-family: var(--font-jp); font-size: 1.05rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.75rem; }
.blog-card-body p { font-size: 0.85rem; color: var(--stone); line-height: 1.7; }
.blog-card-footer {
  padding: 1rem 1.5rem; border-top: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: space-between;
}
.blog-card-read {
  font-size: 0.75rem; font-weight: 600; color: var(--aka);
  letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
}
.blog-card-time { font-size: 0.7rem; color: var(--stone); }
.blog-more { text-align: center; margin-top: 3rem; }

/* --- Single Post --- */
.single-hero {
  background: linear-gradient(135deg, var(--sumi) 0%, var(--sumi-light) 100%);
  padding: 10rem 2rem 5rem; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.single-hero.has-thumbnail { min-height: 60vh; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4rem; }
.single-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.single-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.9), rgba(26,26,26,0.4)); }
.single-hero-content { position: relative; z-index: 2; max-width: 800px; }
.single-category {
  display: inline-block; background: var(--aka); color: white;
  padding: 0.3rem 1rem; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 1rem;
}
.single-title { font-family: var(--font-jp); font-size: 2.5rem; font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
.single-meta { display: flex; gap: 1.5rem; justify-content: center; align-items: center; color: var(--stone-light); font-size: 0.8rem; }
.single-meta span { display: flex; align-items: center; gap: 0.4rem; }

.single-content-wrapper { padding: 4rem 0; }
.single-content { font-size: 1.05rem; line-height: 1.9; color: var(--sumi-light); }
.single-content h2, .single-content h3, .single-content h4 { font-family: var(--font-jp); color: var(--sumi); margin: 2rem 0 1rem; }
.single-content h2 { font-size: 1.6rem; }
.single-content h3 { font-size: 1.3rem; }
.single-content p { margin-bottom: 1.5rem; }
.single-content img { margin: 2rem auto; border-radius: 2px; box-shadow: 0 4px 20px var(--shadow); }
.single-content blockquote {
  border-left: 3px solid var(--aka); padding: 1rem 1.5rem;
  margin: 2rem 0; font-style: italic; color: var(--stone);
  background: var(--washi);
}
.single-content a { color: var(--aka); border-bottom: 1px solid transparent; }
.single-content a:hover { border-bottom-color: var(--aka); }
.single-content ul, .single-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.single-content li { margin-bottom: 0.5rem; }

.single-tags { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.08); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  display: inline-block; padding: 0.3rem 0.8rem;
  border: 1px solid rgba(0,0,0,0.1); font-size: 0.75rem; color: var(--stone);
  letter-spacing: 0.05em; transition: var(--transition);
}
.tag:hover { border-color: var(--aka); color: var(--aka); }

.single-share {
  margin-top: 2rem; padding: 1.5rem 0;
  display: flex; align-items: center; gap: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.share-label { font-size: 0.8rem; color: var(--stone); font-weight: 500; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: var(--transition);
}
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-btn:hover { transform: scale(1.1); opacity: 0.9; color: white; }

.single-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  margin-top: 3rem; padding-top: 2rem;
}
.single-nav-link {
  padding: 1.5rem; background: var(--washi); transition: var(--transition);
}
.single-nav-link:hover { background: var(--sumi); color: white; }
.single-nav-next { text-align: right; }
.nav-label { display: block; font-size: 0.7rem; color: var(--stone); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; }
.nav-title { font-family: var(--font-jp); font-weight: 600; font-size: 0.95rem; }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 0.5rem; }
.gallery-grid-full { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; }
.gallery-item { background: linear-gradient(135deg, var(--sumi), var(--sumi-light)); position: relative; overflow: hidden; cursor: pointer; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(196,30,58,0); display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(196,30,58,0.7); }
.gallery-item-overlay span { color: white; font-size: 2rem; opacity: 0; transform: scale(0.5); transition: var(--transition); }
.gallery-item:hover .gallery-item-overlay span { opacity: 1; transform: scale(1); }
.gallery-item-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 0.7rem; letter-spacing: 0.1em; text-align: center; padding: 1rem;
}

.gallery-filter { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.gallery-filter-btn {
  padding: 0.5rem 1.2rem; border: 1px solid rgba(0,0,0,0.15);
  background: transparent; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  font-family: var(--font-body);
}
.gallery-filter-btn:hover, .gallery-filter-btn.active { background: var(--sumi); color: white; border-color: var(--sumi); }

/* --- Contatti --- */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contatti-info h3 { font-family: var(--font-jp); font-size: 1.4rem; font-weight: 300; margin-bottom: 2rem; }
.contatti-info h3 strong { font-weight: 700; }
.contatto-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contatto-icon {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--washi); display: flex; align-items: center; justify-content: center;
  color: var(--sumi);
}
.contatto-item span { display: block; font-size: 0.75rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; }
.contatto-item strong { font-size: 0.95rem; }
.contatto-item a { color: var(--aka); font-weight: 500; }
.contatto-item a:hover { opacity: 0.8; }
.contatti-map { background: var(--washi); min-height: 400px; overflow: hidden; }
.contatti-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; }
.map-placeholder {
  width: 100%; height: 100%; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 0.85rem; text-align: center;
}

/* --- CTA Banner --- */
.cta-banner { background: var(--aka); color: white; padding: 4rem 2rem; text-align: center; }
.cta-banner h2 { font-family: var(--font-jp); font-size: 2rem; font-weight: 300; margin-bottom: 0.5rem; }
.cta-banner p { font-size: 0.9rem; opacity: 0.9; margin-bottom: 2rem; }

/* --- Buttons --- */
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 2px solid var(--sumi); color: var(--sumi);
  padding: 0.8rem 2rem; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  background: transparent; font-family: var(--font-body);
}
.btn-outline:hover { background: var(--sumi); color: white; }
.btn-white {
  display: inline-flex; background: white; color: var(--aka);
  padding: 0.8rem 2.5rem; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; border: none; cursor: pointer; transition: var(--transition);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); color: var(--aka); }

/* --- Footer --- */
.footer { background: var(--sumi); color: var(--stone); padding: 3rem 2rem 1.5rem; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo a { color: white; }
.footer-logo { font-family: var(--font-jp); color: white; font-size: 1.1rem; font-weight: 600; }
.footer-logo span { display: block; font-size: 0.65rem; color: var(--stone); font-weight: 300; letter-spacing: 0.15em; text-transform: uppercase; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-links a:hover { color: var(--aka); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--stone); transition: var(--transition); }
.footer-social a:hover { color: white; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.5rem; font-size: 0.7rem;
}
.footer-affiliations { display: flex; gap: 1.5rem; }
.footer-affiliations span { letter-spacing: 0.1em; text-transform: uppercase; }

/* --- Comments --- */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.08); }
.comments-title { font-family: var(--font-jp); font-size: 1.3rem; margin-bottom: 2rem; }
.comment-list { list-style: none; }
.comment-list li { margin-bottom: 1.5rem; padding: 1.5rem; background: var(--washi); }
.comment-list .comment-author img { border-radius: 50%; }
.comment-reply-title { font-family: var(--font-jp); font-size: 1.3rem; margin-bottom: 1rem; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(0,0,0,0.1);
  font-family: var(--font-body); font-size: 0.9rem; margin-bottom: 1rem;
  transition: var(--transition); background: white;
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--aka); outline: none; }
.comment-form textarea { min-height: 150px; }

/* --- Search --- */
.search-form {
  display: flex; max-width: 500px; margin: 0 auto;
  border: 2px solid rgba(0,0,0,0.1); overflow: hidden;
}
.search-input {
  flex: 1; padding: 0.8rem 1rem; border: none; outline: none;
  font-family: var(--font-body); font-size: 0.9rem;
}
.search-submit {
  background: var(--sumi); color: white; border: none;
  padding: 0.8rem 1.2rem; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center;
}
.search-submit:hover { background: var(--aka); }

/* --- No Posts --- */
.no-posts, .no-posts-full { text-align: center; padding: 3rem; color: var(--stone); grid-column: 1/-1; }
.no-posts-full h2 { font-family: var(--font-jp); color: var(--sumi); margin-bottom: 0.5rem; }

/* --- Page Content --- */
.page-content { font-size: 1.05rem; line-height: 1.9; }
.page-content h2, .page-content h3 { font-family: var(--font-jp); margin: 2rem 0 1rem; }
.page-content p { margin-bottom: 1.5rem; }
.page-content img { margin: 1.5rem 0; }

/* --- Pagination --- */
.pagination {
  display: flex; justify-content: center; gap: 0.5rem;
  margin-top: 3rem; padding-top: 2rem;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.1); transition: var(--transition);
}
.pagination .current { background: var(--sumi); color: white; border-color: var(--sumi); }
.pagination a:hover { background: var(--aka); color: white; border-color: var(--aka); }

/* --- Entry Content (WordPress classes) --- */
.entry-content .aligncenter { display: block; margin: 2rem auto; }
.entry-content .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { font-size: 0.8rem; color: var(--stone); text-align: center; padding: 0.5rem 0; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 2rem 0; }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery-item img { width: 100%; height: auto; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .corsi-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid, .blog-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-mobile { display: block; }
  .hero-kanji { font-size: 3rem; }
  .hero-title { font-size: 2rem; }
  .single-title { font-size: 1.8rem; }
  .about-grid, .contatti-grid { grid-template-columns: 1fr; gap: 2rem; }
  .corsi-grid { grid-template-columns: 1fr; }
  .blog-grid, .blog-archive-grid { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid-full { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
  .gallery-item:nth-child(5) { grid-column: span 1; }
  .section { padding: 4rem 1.5rem; }
  .single-hero { padding: 7rem 1.5rem 3rem; }
  .single-nav { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-hero { padding: 7rem 1.5rem 3rem; }
  .page-hero-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-kanji { font-size: 2.5rem; }
  .section-header h2 { font-size: 1.5rem; }
  .gallery-grid, .gallery-grid-full { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
}

/* --- WordPress Admin Bar Fix --- */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .nav { top: 46px; }
}
