/* ==========================================================================
   GAS IL CANNETO - FAITHFUL & RESPONSIVE DESIGN SYSTEM
   100% Static, Portable (Works in file:/// and on web server /new/)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #1b4332;
  --primary-btn: #006633;
  --primary-btn-hover: #004d26;
  --primary-light: #2d6a4f;
  --accent-gold: #d4a373;
  --accent-badge: #e9c46a;
  --bg-page: #f8faf9;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f2;
  --text-main: #212529;
  --text-muted: #556960;
  --text-light: #7b8e86;
  --border: #e2e8e5;
  --border-light: #edf2ef;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-btn: 30px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary-btn);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-btn-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   HEADER & NAVBAR (DESKTOP & MOBILE OPTIMIZED)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 2px solid #e5ece8;
  box-shadow: var(--shadow-nav);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.02);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.94rem;
  color: #2b3a33;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--primary-btn);
  background: #f0f6f2;
}

.nav-link.active {
  color: #ffffff;
  background: var(--primary-btn);
}

.nav-cta {
  background: var(--primary-btn);
  color: #ffffff !important;
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  box-shadow: 0 3px 10px rgba(0, 102, 51, 0.2);
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--primary-btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 102, 51, 0.3);
}

.nav-cta.active {
  background: var(--primary-btn-hover);
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  background: #f0f6f2;
  color: var(--primary-btn);
  border: 1px solid #d8e5dd;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.mobile-toggle:hover, .mobile-toggle:active {
  background: var(--primary-btn);
  color: #ffffff;
  border-color: var(--primary-btn);
}

.mobile-toggle-icon {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
}

/* ==========================================================================
   ORIGINAL 3-FEATURE HERO SECTION (01.png, 02.png, 03.png)
   ========================================================================== */
.features-hero {
  padding: 36px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px 16px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #eef2f0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-img-wrap {
  width: 100%;
  max-width: 280px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-img {
  transform: scale(1.03);
}

.btn-feature {
  display: block;
  width: 100%;
  max-width: 260px;
  background: var(--primary-btn);
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 12px rgba(0, 102, 51, 0.25);
  transition: var(--transition);
  text-align: center;
}

.btn-feature:hover {
  background: var(--primary-btn-hover);
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 102, 51, 0.35);
}

/* ==========================================================================
   PAGE HERO & HEADINGS
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #ffffff;
  padding: 44px 0;
}

.hero-title {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.section-main-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 32px;
  font-weight: 800;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--primary-btn);
  font-weight: 600;
}

.breadcrumb-item.current {
  color: var(--text-muted);
}

.breadcrumb-separator {
  color: var(--text-light);
}

/* ==========================================================================
   ARTICLES & CARDS GRID
   ========================================================================== */
.section {
  padding: 44px 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #ccdcd4;
}

.card-img-wrap {
  height: 190px;
  background: #f0f4f2;
  overflow: hidden;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-meta-date {
  font-weight: 600;
  color: #333;
}

.card-meta-author {
  color: var(--primary-btn);
  font-weight: 600;
}

.card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-title a {
  color: #212529;
}

.card-title a:hover {
  color: var(--primary-btn);
}

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.btn-readmore {
  display: inline-block;
  background: #333333;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-readmore:hover {
  background: var(--primary-btn);
}

/* ==========================================================================
   ARTICLE SINGLE VIEW
   ========================================================================== */
.article-container {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 40px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.article-header {
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.article-main-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.article-meta-bar {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.article-cover {
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2b2b2b;
}

.article-content p {
  margin-bottom: 1.3em;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 1.6em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-light);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: 1.4em 0 0.5em;
}

.article-content ul, .article-content ol {
  margin: 1.2em 0 1.4em 1.6em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid var(--primary-btn);
  padding: 14px 20px;
  background: var(--bg-surface-alt);
  font-style: italic;
  margin: 1.6em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
}

.article-content th, .article-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
}

.article-content th {
  background: var(--bg-surface-alt);
  font-weight: 700;
}

.doc-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 14px 0;
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-icon {
  font-size: 1.8rem;
}

.doc-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-btn);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--primary-btn-hover);
}

.btn-outline {
  border: 2px solid var(--primary-btn);
  color: var(--primary-btn) !important;
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-btn);
  color: #fff !important;
}

/* ==========================================================================
   TABLE / CALENDARIO
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

.data-table th {
  background: #2a6f47;
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.92rem;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.data-table tr:hover td {
  background: #f7faf8;
}

.badge-period {
  display: inline-block;
  background: #eef6f1;
  color: #1f5436;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
}

/* ==========================================================================
   SEARCH & FILTERS
   ========================================================================== */
.filter-bar {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.search-input {
  flex-grow: 1;
  min-width: 220px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-btn);
}

.filter-select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
  outline: none;
}

/* ==========================================================================
   MEETING INFO BANNER
   ========================================================================== */
.meeting-banner {
  background: #ffffff;
  border-left: 6px solid var(--primary-btn);
  padding: 24px 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.meeting-banner-text h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.meeting-banner-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #192721;
  color: #c9d6d0;
  padding: 48px 0 24px;
  border-top: 4px solid var(--primary-btn);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #9eb3a9;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #c9d6d0;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #7d968b;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   RESPONSIVE & MOBILE SPECIFICS
   ========================================================================== */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 72px;
  }
  .brand-logo {
    height: 48px;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    border-bottom: 3px solid var(--primary-btn);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    gap: 4px;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    width: 100%;
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .article-container {
    padding: 22px 16px;
  }
  .article-main-title {
    font-size: 1.6rem;
  }
  .meeting-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
