/* ============================================
   CABBIA DI MONTEREALE - Modern Mountain Village
   Color Palette: Forest Green, Earth Brown, Beige
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green-dark: #1a3c28;
  --green-mid: #2d6a4f;
  --green-light: #52b788;
  --green-pale: #b7e4c7;
  --brown-dark: #3e2723;
  --brown-mid: #6d4c41;
  --brown-light: #a1887f;
  --beige: #f5f0e8;
  --beige-dark: #e8dfd3;
  --cream: #faf8f4;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-mid: #555555;
  --text-light: #888888;
  --gold: #c9a959;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--green-dark);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(26, 60, 40, 0.95);
  backdrop-filter: blur(12px);
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.nav-logo span {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 60, 40, 0.4) 0%,
    rgba(26, 60, 40, 0.6) 50%,
    rgba(26, 60, 40, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-pale);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--green-light);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.hero-cta:hover {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 30px;
  height: 30px;
  stroke: rgba(255,255,255,0.6);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Section Styles --- */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--green-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-beige {
  background: var(--beige);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.section-dark .section-label {
  color: var(--green-pale);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-mid);
  font-size: 1.1rem;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green-mid);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover {
  gap: 0.7rem;
}

/* --- About Section (Il Paese) --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-image-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(26, 60, 40, 0.9);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.about-feature h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green-mid);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--green-mid);
  color: var(--green-mid);
  background: transparent;
}

.btn-outline:hover {
  background: var(--green-mid);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

/* --- Feste / Calendar --- */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.calendar-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.calendar-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.calendar-card.featured {
  background: rgba(82, 183, 136, 0.15);
  border-color: var(--green-light);
}

.calendar-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--green-pale);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.calendar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.calendar-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Tradizioni --- */
.tradition-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tradition-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--beige-dark);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}

.tradition-tab:hover,
.tradition-tab.active {
  background: var(--green-mid);
  color: var(--white);
  border-color: var(--green-mid);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 0.75rem;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* --- Contact / Contatti --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.contact-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--text-mid);
  font-size: 0.95rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Footer --- */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green-pale);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--green-light);
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* --- Page Header (for detail pages) --- */
.page-header {
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(26, 60, 40, 0.5) 0%,
    rgba(26, 60, 40, 0.75) 100%
  );
}

.page-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
}

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

/* --- Detail Page Content --- */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.page-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--green-pale);
}

.page-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.page-content p {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.page-content blockquote {
  border-left: 4px solid var(--green-light);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--beige);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-mid);
}

.page-content ul {
  list-style: none;
  padding: 0;
}

.page-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-mid);
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
}

/* --- Recipe Card --- */
.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green-light);
}

.recipe-card h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem;
  color: var(--green-dark);
}

.recipe-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.recipe-section {
  margin-bottom: 1.25rem;
}

.recipe-section h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--green-mid);
}

.recipe-section p,
.recipe-section li {
  font-size: 0.95rem;
  color: var(--text-mid);
}

/* --- Dialect Cards --- */
.dialect-category {
  margin-bottom: 3rem;
}

.dialect-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dialect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.dialect-item {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--green-light);
}

.dialect-item .original {
  font-style: italic;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dialect-item .meaning {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Surname/Cognomi Cards --- */
.surname-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.surname-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.surname-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--green-dark);
}

.surname-card .count {
  font-size: 0.8rem;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.surname-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
}

/* --- Photo Gallery on detail pages --- */
.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.photo-row img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.photo-row img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* --- Costumi Grid --- */
.costumi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .costumi-grid {
    grid-template-columns: 1fr;
  }
}

/* --- News Section --- */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.news-grid-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card-featured .news-card-image {
  height: 320px;
}

.news-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--green-mid);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.news-card-body {
  padding: 1.5rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.news-meta time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.news-card-featured .news-card-body h3 {
  font-size: 1.5rem;
}

.news-card-body p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.news-card-side {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.news-card-side:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.news-card-side-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.news-card-side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-side-body h4 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.news-card-side-body time {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* News list page */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-list-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.news-list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.news-list-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-list-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.news-list-card:hover .news-list-card-img img {
  transform: scale(1.05);
}

.news-list-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.news-list-card-body p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

  .news-grid-side {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .news-card-side {
    flex: 1 1 260px;
  }

  .news-list-card {
    grid-template-columns: 1fr;
  }

  .news-list-card-img {
    height: 220px;
  }
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--green-mid);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image img {
    height: 350px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 60, 40, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

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

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

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

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

  .photo-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .photo-row {
    grid-template-columns: 1fr;
  }
}
