/* ==========================================================================
   G.S. Cignone — Main Stylesheet
   ========================================================================== */

/* === CUSTOM PROPERTIES === */
:root {
  --color-navy:      #1a2340;
  --color-yellow:    #f5c400;
  --color-white:     #ffffff;
  --color-grey-bg:   #f4f5f7;
  --color-text:      #2d2d2d;
  --color-text-muted:#6b7280;
  --color-border:    #e5e7eb;

  --font-base: 'Montserrat', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.5rem;
  --fs-hero: clamp(2.2rem, 5vw, 4rem);

  --container-max: 1200px;
  --container-pad: 1.5rem;

  --header-h: 72px;

  --radius-sm:   4px;
  --radius-md:   12px;
  --radius-pill: 9999px;

  --shadow-soft:   0 2px 12px rgba(0,0,0,0.08);
  --shadow-card:   0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover:  0 8px 30px rgba(0,0,0,0.16);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
svg { display: inline-block; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
}
h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content h3 { margin: 1.5rem 0 0.75rem; }
.entry-content p  { margin-bottom: 1.25rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a  { color: var(--color-navy); text-decoration: underline; }
.entry-content img { border-radius: var(--radius-md); margin: 1.5rem 0; }
.entry-content blockquote {
  border-left: 4px solid var(--color-yellow);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--color-grey-bg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
}

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-pad { padding: 80px 0; }

.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}
.skip-link:focus {
  position: fixed;
  top: 1rem; left: 1rem;
  z-index: 9999;
  background: var(--color-yellow);
  color: var(--color-navy);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  clip: auto;
  width: auto; height: auto;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-pill-yellow {
  background: var(--color-yellow);
  color: var(--color-navy);
}
.btn-pill-yellow:hover { background: #e6b800; box-shadow: 0 4px 16px rgba(245,196,0,0.35); }

.btn-pill-navy, .btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-pill-navy:hover, .btn-primary:hover { background: #0f1629; box-shadow: 0 4px 16px rgba(26,35,64,0.30); }

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}
.btn-outline:hover { background: var(--color-navy); color: var(--color-white); }

/* === SECTION TITLE === */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  display: inline-block;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--color-yellow);
  border-radius: 2px;
}
.section-subtitle {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  margin-top: 0.75rem;
}
.section-label {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}
.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* === BADGE === */
.badge {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.10); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon-wrap svg,
.site-logo > svg {
  width: 44px;
  height: 44px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === NAVIGATION === */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.primary-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}
.primary-menu li a,
.primary-menu li > span {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}
.primary-menu li a:hover,
.primary-menu li.current-menu-item > a { color: var(--color-navy); background: rgba(26,35,64,0.06); }

.nav-cta {
  margin-left: 1rem;
  font-size: var(--fs-sm);
  padding: 0.55rem 1.25rem;
}

/* Dropdown stubs */
.primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 0.5rem 0;
  list-style: none;
}
.primary-menu li { position: relative; }
.primary-menu li:hover > .sub-menu { display: block; }
.primary-menu .sub-menu li a { border-radius: 0; font-weight: 500; }

/* === MOBILE MENU === */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  z-index: 1100;
}
.menu-toggle:hover { background: var(--color-grey-bg); }
.menu-toggle svg { width: 24px; height: 24px; }
.toggle-icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .toggle-icon--open  { display: none; }
.menu-toggle[aria-expanded="true"] .toggle-icon--close { display: block; }

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 990;
  opacity: 0;
  transition: opacity var(--transition-base);
}
.menu-overlay.is-visible { opacity: 1; }

/* === HERO SLIDER === */
.gsc-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  min-height: 440px;
}

.gsc-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
}

.gsc-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.gsc-slider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: 620px;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: transform 6s ease;
}
.gsc-slider__slide.is-active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,14,30,0.72) 0%, rgba(10,14,30,0.35) 100%);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  color: var(--color-white);
}

.slide-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  max-width: 640px;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.slide-text {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.slide-btn {
  align-self: flex-start;
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.slider-arrow svg { width: 22px; height: 22px; }
.slider-arrow:hover { background: #e6b800; transform: translateY(-50%) scale(1.08); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.slider-arrow--prev { left: 1.5rem; }
.slider-arrow--next { right: 1.5rem; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}
.slider-dot.is-active { background: var(--color-yellow); transform: scale(1.3); }

/* === FEATURE CARDS === */
.features-section {
  background: var(--color-white);
  padding: 20px 0 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.feature-card:hover .feature-icon { background: var(--color-navy); color: var(--color-white); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-yellow);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition-base), color var(--transition-base);
}
.feature-icon--navy { background: var(--color-navy); color: var(--color-white); }
.feature-icon svg { width: 26px; height: 26px; }

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}
.feature-text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Values grid (About page) */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === NEWS CARDS === */
.gsc-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.news-preview-section,
.news-archive-section {
  background: var(--color-grey-bg);
  padding: 80px 0;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.news-card__image-link { display: block; overflow: hidden; }
.news-card__image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card__image { transform: scale(1.04); }

.news-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.news-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }

.news-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.news-card__title a { color: inherit; }
.news-card__title a:hover { color: var(--color-navy); text-decoration: underline; }

.news-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-navy);
  margin-top: auto;
  transition: gap var(--transition-fast);
}
.news-card__link:hover { gap: 0.6rem; }
.news-card__link svg { width: 16px; height: 16px; }

/* === NEWS ARCHIVE / FILTER TABS === */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-tab {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}
.filter-tab:hover,
.filter-tab.is-active {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

/* === GALLERY === */
.gsc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 1; }
.gallery-item__link { display: block; width: 100%; height: 100%; }
.gallery-item__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover .gallery-item__img { transform: scale(1.06); }

/* === PAGE BANNER === */
.page-banner {
  background: var(--color-navy);
  padding: 60px 0;
  text-align: center;
}
.page-banner--yellow { background: var(--color-yellow); }
.page-banner--yellow .page-banner__title,
.page-banner--yellow .page-banner__desc { color: var(--color-navy); }
.page-banner__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 0.5rem;
}
.page-banner__desc { color: rgba(255,255,255,0.8); font-size: var(--fs-md); }

/* === PAGE HERO (with image) === */
.page-hero, .post-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.page-hero img, .post-hero img,
.page-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__overlay, .post-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,18,35,0.55);
}
.page-hero__content, .post-hero__content {
  position: absolute;
  bottom: 2.5rem;
  left: 0; right: 0;
}
.page-hero__title, .post-hero__title {
  color: var(--color-white);
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-hero__meta {
  display: flex;
  gap: 1.5rem;
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-sm);
  margin-top: 0.75rem;
}
.page-hero__meta span { display: flex; align-items: center; gap: 0.4rem; }
.page-hero__meta svg { width: 16px; height: 16px; }

/* === SINGLE POST === */
.single-layout { max-width: 780px; }

.single-header { margin-bottom: 2rem; }
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: 1.5rem;
}

.single-content { font-size: var(--fs-md); line-height: 1.8; }

.single-footer { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.single-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.back-link svg { width: 18px; height: 18px; }

.related-posts { margin-top: 4rem; }
.related-posts .section-header { text-align: left; }
.related-posts .section-title::after { left: 0; transform: none; }

/* === ABOUT PAGE === */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-split__text h2 { margin-bottom: 1.25rem; }
.about-split__text p  { color: var(--color-text-muted); margin-bottom: 1.25rem; }
.about-split__image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.about-grey { background: var(--color-grey-bg); }

/* Timeline */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.875rem;
  top: 0.35rem;
  width: 14px; height: 14px;
  background: var(--color-yellow);
  border-radius: 50%;
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-yellow);
}
.timeline-year {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

/* Members */
.members-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.member-card { text-align: center; }
.member-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-yellow);
}
.member-placeholder {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--color-grey-bg);
  margin: 0 auto 1rem;
}
.member-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.member-role { font-size: var(--fs-sm); color: var(--color-yellow); font-weight: 600; margin-bottom: 0.5rem; }
.member-bio { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* === 5x1000 PAGE === */
.fiscal-box {
  max-width: 600px;
  margin: 0 auto 3rem;
  text-align: center;
}
.fiscal-box__inner {
  background: var(--color-navy);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
}
.fiscal-label {
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.fiscal-code {
  color: var(--color-yellow);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.copy-btn { gap: 0.5rem; }
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn__label--done { color: var(--color-navy); }

.steps-section { max-width: 680px; margin: 0 auto 3rem; }
.steps-section h2 { margin-bottom: 1.5rem; }
.steps-list { list-style: none; counter-reset: steps; }
.steps-list li {
  counter-increment: steps;
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-md);
  align-items: flex-start;
}
.steps-list li::before {
  content: counter(steps);
  width: 36px; height: 36px;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-weight: 700;
  font-size: var(--fs-sm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-section { max-width: 680px; margin: 0 auto; }
.download-section h2 { margin-bottom: 1.5rem; }
.download-list { display: flex; flex-direction: column; gap: 0.75rem; }
.download-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-grey-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--color-navy);
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}
.download-item:hover { background: var(--color-yellow); box-shadow: var(--shadow-soft); }
.download-item__icon svg { width: 22px; height: 22px; }

/* === FESTA DELLA BIRRA === */
.festa-hero { height: 500px; }

.festa-intro { max-width: 800px; margin: 0 auto 4rem; }
.festa-intro h2 { margin-bottom: 1rem; }

.festa-sections { display: flex; flex-direction: column; gap: 4rem; margin-bottom: 4rem; }
.festa-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.festa-section--reverse { direction: rtl; }
.festa-section--reverse > * { direction: ltr; }
.festa-section__text h2 { margin-bottom: 1rem; }
.festa-section__text p  { color: var(--color-text-muted); }
.festa-section__image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.festa-program { margin-bottom: 3rem; }
.festa-program h2 { margin-bottom: 1.5rem; }
.program-table { width: 100%; border-collapse: collapse; }
.program-table tr { border-bottom: 1px solid var(--color-border); }
.program-table td { padding: 0.85rem 1rem; font-size: var(--fs-md); }
.program-time { font-weight: 700; color: var(--color-navy); white-space: nowrap; width: 100px; }
.program-activity { color: var(--color-text); }
.program-table tr:hover td { background: var(--color-grey-bg); }

.festa-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.festa-gallery__item { overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 3/2; }
.festa-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.festa-gallery__item:hover img { transform: scale(1.05); }

/* === CONTATTI === */
.contact-info h2, .contact-form-wrap h2 { margin-bottom: 1.5rem; }

.contact-detail-list { list-style: none; margin-bottom: 2rem; }
.contact-detail-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}
.contact-detail__icon {
  width: 40px; height: 40px;
  background: var(--color-yellow);
  color: var(--color-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail__icon svg { width: 18px; height: 18px; }
.contact-detail-list strong { display: block; font-size: var(--fs-sm); color: var(--color-navy); margin-bottom: 0.25rem; }
.contact-detail-list p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }
.contact-detail-list a { color: var(--color-navy); text-decoration: underline; }

.map-embed { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); }
.map-embed iframe { display: block; }
.map-placeholder {
  background: var(--color-grey-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* CF7 form overrides */
.contact-form-wrap .wpcf7 input:not([type="submit"]),
.contact-form-wrap .wpcf7 textarea,
.contact-form-wrap .wpcf7 select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-base);
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
  background: var(--color-white);
}
.contact-form-wrap .wpcf7 input:focus,
.contact-form-wrap .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(26,35,64,0.1);
}
.contact-form-wrap .wpcf7 .wpcf7-submit {
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
  width: auto;
}
.contact-form-wrap .wpcf7 .wpcf7-submit:hover { background: #0f1629; }

.form-placeholder {
  background: var(--color-grey-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* === 404 === */
.error-404-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--color-grey-bg);
}
.error-404-inner { text-align: center; padding: 4rem 0; }
.error-404__number {
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--color-yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-404__title { font-size: 2rem; margin-bottom: 1rem; }
.error-404__text { color: var(--color-text-muted); max-width: 480px; margin: 0 auto 2rem; }
.error-404__actions { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

/* === SEARCH === */
.search-term { color: var(--color-yellow); }

/* === FOOTER === */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.8); }

.footer-top { padding: 70px 0 50px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.2fr;
  gap: 3rem;
}

/* Col 1 */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.footer-logo-icon { display: flex; }
.footer-logo-icon svg { width: 44px; height: 44px; filter: invert(1) brightness(2); }
.footer-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.footer-logo-name { font-size: 1.05rem; font-weight: 800; color: var(--color-white); }
.footer-logo-sub { font-size: 0.7rem; font-weight: 500; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.04em; }

.footer-description {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; }
.social-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.social-circle:hover { background: #e6b800; transform: translateY(-2px); }
.social-circle svg { width: 18px; height: 18px; }

/* Footer menu cols */
.footer-heading {
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-menu { list-style: none; }
.footer-menu li { margin-bottom: 0.6rem; }
.footer-col--wide .footer-menu { columns: 2; column-gap: 2rem; }
.footer-menu a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-menu a:hover { color: var(--color-yellow); }

/* Contact list */
.footer-contact-list { list-style: none; }
.footer-contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
}
.contact-icon { flex-shrink: 0; margin-top: 0.1rem; }
.contact-icon svg { width: 16px; height: 16px; color: var(--color-yellow); }
.footer-contact-list a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-contact-list a:hover { color: var(--color-yellow); }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: var(--fs-xs); color: rgba(255,255,255,0.45); margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; list-style: none; }
.footer-legal a { font-size: var(--fs-xs); color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition-fast); }
.footer-legal a:hover { color: var(--color-yellow); }

/* === PAGINATION === */
.gsc-pagination { display: flex; justify-content: center; margin-top: 3rem; }
.gsc-pagination ul { display: flex; gap: 0.5rem; list-style: none; align-items: center; }
.gsc-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.gsc-pagination .page-numbers:hover { background: var(--color-navy); color: var(--color-white); }
.gsc-pagination .current { background: var(--color-navy); color: var(--color-white); border-color: var(--color-navy); }
.gsc-pagination .prev, .gsc-pagination .next { width: auto; padding: 0 0.75rem; border-radius: var(--radius-pill); }
.gsc-pagination svg { width: 16px; height: 16px; }

/* === UTILITIES === */
.gsc-empty { text-align: center; padding: 4rem 2rem; color: var(--color-text-muted); }
.gsc-empty p { margin-bottom: 1.5rem; font-size: var(--fs-md); }

.gsc-admin-notice {
  background: #fff8cd;
  border: 1px solid #f5c400;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  color: #6b4c00;
  margin: 1rem 0;
}

.iubenda-placeholder {
  background: var(--color-grey-bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.page-content { max-width: 780px; }

/* Search form */
.search-form { display: flex; gap: 0.5rem; max-width: 400px; margin: 0 auto; }
.search-form input[type="search"] {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  outline: none;
}
.search-form input:focus { border-color: var(--color-navy); }
.search-submit {
  padding: 0.65rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-weight: 700;
  font-size: var(--fs-sm);
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}
.search-submit:hover { background: #0f1629; }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === PRINT === */
@media print {
  .site-header, .site-footer, .slider-arrow, .slider-dots, .menu-toggle { display: none !important; }
  .site-main { padding: 1rem; }
  a[href]::after { content: " (" attr(href) ")"; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* --- Tablet: 1024px and below --- */
@media (max-width: 1024px) {
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .members-grid   { grid-template-columns: repeat(2, 1fr); }
  .gsc-news-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .about-split    { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .festa-section  { grid-template-columns: 1fr; }
  .festa-section--reverse { direction: ltr; }
  .gsc-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .festa-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* --- Hamburger trigger: 768px --- */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .menu-overlay { display: block; pointer-events: none; }
  .menu-overlay.is-visible { pointer-events: auto; }

  .primary-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }
  .primary-nav.is-open { transform: translateX(0); }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
  }
  .primary-menu li { width: 100%; }
  .primary-menu li a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }
  .primary-menu .sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    border-radius: 0;
  }
  .primary-menu li:hover > .sub-menu { display: block; }

  .nav-cta {
    margin-left: 0;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: center;
  }

  /* Hero */
  .gsc-hero, .gsc-slider__slide.is-active { min-height: 60vh; }
  .slide-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .slide-text  { font-size: var(--fs-base); }
  .slide-content { padding-bottom: 4rem; }
  .slider-arrow { width: 42px; height: 42px; }
  .slider-arrow--prev { left: 0.75rem; }
  .slider-arrow--next { right: 0.75rem; }

  /* News */
  .gsc-news-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gsc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .festa-gallery { grid-template-columns: repeat(2, 1fr); }

  /* Feature cards */
  .features-grid { grid-template-columns: 1fr; }
  .values-grid   { grid-template-columns: 1fr; }
  .members-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-contact-list li { justify-content: center; text-align: left; }
  .footer-bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-legal { justify-content: center; }

  /* Page banner */
  .page-banner { padding: 40px 0; }
  .page-hero, .post-hero, .festa-hero { height: 300px; }

  /* About */
  .about-split__image img { height: 260px; }

  /* 5x1000 */
  .fiscal-code { font-size: 1.6rem; letter-spacing: 0.08em; }

  /* Festa */
  .festa-gallery { grid-template-columns: 1fr; }
  .festa-section__image img { height: 250px; }

  /* Section pad */
  .section-pad { padding: 50px 0; }

  /* Footer top */
  .footer-top { padding: 50px 0 40px; }
}

/* --- Mobile: 480px and below --- */
@media (max-width: 480px) {
  :root { --container-pad: 1rem; }

  .gsc-news-grid { grid-template-columns: 1fr; }
  .gsc-gallery-grid { grid-template-columns: 1fr; }
  .festa-gallery { grid-template-columns: 1fr; }
  .members-grid  { grid-template-columns: 1fr; }

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

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

  .section-pad { padding: 40px 0; }
  .footer-top  { padding: 40px 0 30px; }

  .page-hero, .post-hero, .festa-hero { height: 240px; }

  .error-404__number { font-size: 6rem; }

  .steps-list li { font-size: var(--fs-base); }

  .gsc-hero, .gsc-slider__slide.is-active { min-height: 30vh; }
}

/* ==========================================================================
   GALLERY — Isotope + GLightbox
   ========================================================================== */

/* Tab di filtro */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.gallery-tab {
  padding: 8px 20px;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-navy);
  font-family: var(--font-base);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.gallery-tab:hover,
.gallery-tab.is-active {
  background: var(--color-navy);
  color: #fff;
}

/* Grid container */
.gallery-grid {
  position: relative;
}

/* Sizer per masonry column width */
.grid-sizer,
.gsc-gallery-item {
  width: calc(33.333% - 9px);
}
@media (max-width: 768px) {
  .grid-sizer,
  .gsc-gallery-item { width: calc(50% - 6px); }
}
@media (max-width: 480px) {
  .grid-sizer,
  .gsc-gallery-item { width: 100%; }
}

/* Singolo item */
.gsc-gallery-item {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

/* Layout griglia uniforme */
.gallery-grid--grid .gsc-gallery-item {
  aspect-ratio: 1 / 1;
}
.gallery-grid--grid .gsc-gallery-thumb,
.gallery-grid--grid img {
  height: 100%;
}

/* Thumbnail */
.gsc-gallery-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-grey-bg);
}
.gsc-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gsc-gallery-thumb:hover img {
  transform: scale(1.04);
}

/* Placeholder se nessun thumbnail */
.gsc-gallery-no-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--color-grey-bg);
}

/* Play button overlay per i video */
.gsc-gallery-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  transition: background 0.2s;
}
.gsc-gallery-thumb:hover .gsc-gallery-play {
  background: rgba(0,0,0,.5);
}
.gsc-gallery-play svg {
  width: 48px;
  height: 48px;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Load more */
.gallery-load-more {
  text-align: center;
  margin-top: 40px;
}
.h1-text-slider div {
    font-size: clamp(1.3rem, 4vw, 3.75rem) !important;
}
main > .container {
    padding: 20px;
}
@media (max-width: 1200px) {
.h1-text-slider {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
}
}
