/*
Theme Name:  Grup Barnils
Theme URI:   https://www.grupbarnils.cat
Author:      Grup de Periodistes Ramon Barnils
Author URI:  https://www.grupbarnils.cat
Description: Tema oficial del Grup de Periodistes Ramon Barnils. Disseny editorial en blanc amb accents taronja, tipografia Playfair Display + Source Serif 4 + DM Sans.
Version:     1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:     Propietari
Text Domain: barnils
*/

/* =====================================================
   GRUP DE PERIODISTES RAMON BARNILS — Design system
   ===================================================== */

:root {
  --orange: #e3521c;
  --orange-dark: #c03e10;
  --orange-light: #fff0ea;
  --black: #0a0a0a;
  --near-black: #1c1c1c;
  --white: #ffffff;
  --cream: #faf8f5;
  --cream-dark: #f2efe9;
  --grey-light: #f5f4f1;
  --grey-mid: #d8d4cc;
  --grey-text: #6b6560;
  --text: #1c1c1c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ============ SEPARATOR + HEADER ============ */
.top-separator {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--black);
  z-index: 1001;
}

header {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 68px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 38px; width: auto; }


nav#main-nav { display: flex; align-items: center; }

/*FG*/
nav#main-nav #main-nav-list {display: flex;}
nav#main-nav li {
	list-style: none;
}
/*FG*/

nav#main-nav a {
  color: var(--near-black);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 1rem;
  height: 68px;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(0,0,0,0.07);
  transition: color 0.2s;
}

nav#main-nav a:first-child { border-left: 1px solid rgba(0,0,0,0.07); }
nav#main-nav a:hover { color: var(--orange); }
nav#main-nav a.current-menu-item { color: var(--orange); }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0 1.5rem !important;
  font-weight: 700 !important;
  border: none !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--orange-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--near-black); display: block; transition: 0.3s; }
/* Amaga hamburguesa en ordinador, mostra-la en mòbil */
.hamburger {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;  /* mostra el botó només a mòbil */
  }

  nav#main-nav {
    position: relative;
  }


  nav#main-nav #main-nav-list {
    display: none;
    flex-direction: column;    
    position: absolute;
    top: 0px;                 
    left: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  nav#main-nav.open #main-nav-list {
    display: flex;
  }

  nav#main-nav a {
    height: auto;
    padding: 12px 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    justify-content: flex-start;
  }

  nav#main-nav a:first-child {
    border-left: none;
  }

  /* El botó CTA també s'adapta */
  .nav-cta {
    padding: 12px 1.5rem !important;
    text-align: center;
  }
}

@media (min-width: 769px) {
  nav#main-nav #main-nav-list {
    display: flex !important;  
    flex-direction: row;
    position: static;
    width: auto;
    box-shadow: none;
  }
}

/* ============ BUTTONS ============ */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--orange);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--near-black);
  padding: 0.9rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--grey-mid);
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-eyebrow::after { content: ''; flex: 1; max-width: 36px; height: 2px; background: var(--orange); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--near-black);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-title-white { color: var(--white); }

.section-lead {
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  color: var(--grey-text);
  max-width: 580px;
  line-height: 1.85;
  margin-bottom: 3rem;
}

/* ============ HERO ============ */
#hero {
  background: var(--white);
  min-height: calc(92vh - 71px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 71px;
  position: relative;
  overflow: hidden;
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
}
.hero-inner { padding: 5rem 4rem; width: 100%; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 5.8rem);
  font-weight: 900;
  color: var(--near-black);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  width: 100%;
}
.hero-title em { color: var(--orange); font-style: italic; }
.hero-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 3rem; }
.hero-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 1.15rem;
  color: var(--grey-text);
  max-width: 580px;
  line-height: 1.85;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ NEWSLETTER ============ */
/* Formulari en vertical */
.newsletter-form-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px; /* opcional, per no fer-lo massa ample */
}

/* Input email */
.newsletter-form-vertical input[type="email"] {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

/* Checkbox + text */
.checkbox-legal {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--grey-text, #666);
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-legal input {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--orange, #ff6600);
}

.checkbox-legal a {
  color: var(--orange, #ff6600);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-legal a:hover {
  text-decoration: underline;
}

/* Botó */
.newsletter-form-vertical button {
  background: var(--orange); color: var(--white);
  border: 2px solid var(--orange); padding: 0.9rem 1.8rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; transition: background 0.2s;
  white-space: nowrap; font-family: 'DM Sans', sans-serif;
}
.newsletter-form-vertical button:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
/* ============ NEWS ============ */
#noticies { background: var(--white); }
.filter-tabs { display: flex; margin-bottom: 3rem; border-bottom: 2px solid var(--grey-mid); overflow-x: auto; scrollbar-width: none;/*FG*/flex-wrap: wrap;justify-content: center;/*FG*/ }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 0.75rem 1.5rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  border: none; background: none; color: var(--grey-text);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: all 0.2s; white-space: nowrap; font-family: 'DM Sans', sans-serif;
}
.filter-tab.active, .filter-tab:hover { color: var(--orange); border-bottom-color: var(--orange); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--grey-mid); }
.news-card { background: var(--white); padding: 2rem; transition: all 0.25s; border-bottom: 3px solid transparent; cursor: pointer; }
.news-card:hover { border-bottom-color: var(--orange); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); position: relative; z-index: 1; }

.news-card-featured { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-bottom: 3px solid var(--orange); }
.news-card-featured .news-img-placeholder { background: var(--cream); color: var(--grey-mid); }
.news-card-featured .news-content { display: flex; flex-direction: column; justify-content: center; padding: 3rem; background: var(--near-black); }

.news-cat { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.4rem; }
.news-cat::before { content: ''; width: 7px; height: 7px; background: var(--orange); flex-shrink: 0; display: inline-block; }
.news-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--near-black); line-height: 1.35; margin-bottom: 1rem; transition: color 0.2s; }
.news-card:hover .news-title { color: var(--orange); }
.news-card-featured .news-content .news-title { color: var(--white); font-size: 1.8rem; line-height: 1.2; }
.news-card-featured:hover .news-content .news-title { color: var(--orange); }
.news-excerpt { font-family: 'Source Serif 4', serif; font-size: 0.9rem; color: var(--grey-text); line-height: 1.75; margin-bottom: 1rem; }
.news-card-featured .news-content .news-excerpt { color: rgba(255,255,255,0.6); }
.news-date { font-size: 0.7rem; color: #aaa; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.news-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--orange); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.5rem; transition: gap 0.2s; }
.news-link:hover { gap: 0.8rem; }
.news-img-placeholder { width: 100%; min-height: 260px; display: flex; align-items: center; justify-content: center; color: var(--grey-mid); background: var(--cream); }
.news-featured-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.view-all-wrap { text-align: center; margin-top: 3rem; }

/* ============ MÈDIA.CAT ============ */
.mc-section { background: var(--white); }
.mc-header { background: var(--white); border-top: 1px solid var(--grey-mid); border-bottom: 3px solid var(--near-black); padding: 2.5rem 0; }
.mc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mc-logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.mc-logo-img { height: 48px; width: auto; }
.mc-tagline { font-family: 'Source Serif 4', serif; font-style: italic; font-size: 0.95rem; color: var(--grey-text); max-width: 380px; line-height: 1.6; flex: 1; }
.mc-tools-band { background: var(--cream); padding: 4rem 0; }
.mc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.mc-panel { background: var(--white); padding: 3rem; border: 1px solid var(--cream-dark); border-right: none; position: relative; overflow: hidden; transition: background 0.25s; }
.mc-panel:last-child { border-right: 1px solid var(--cream-dark); }
.mc-panel:hover { background: var(--grey-light); }
.mc-panel-bordered { border-left: 3px solid var(--near-black); }
.mc-panel-label { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--grey-text); font-weight: 700; margin-bottom: 1rem; }
.mc-panel h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--near-black); margin-bottom: 1rem; line-height: 1.2; }
.mc-panel p { font-family: 'Source Serif 4', serif; color: var(--grey-text); font-size: 0.9rem; line-height: 1.85; margin-bottom: 1rem; }
.mc-link-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--near-black); color: var(--white); padding: 0.65rem 1.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.2s; font-family: 'DM Sans', sans-serif; }
.mc-link-btn:hover { background: var(--orange); color: var(--white); }
.mc-link-text { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; color: var(--orange); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: gap 0.2s; }
.mc-link-text:hover { gap: 0.8rem; }
.mc-incidents { margin-top: 1.5rem; }
.mc-incident { padding: 0.85rem 0; border-top: 1px solid var(--grey-mid); }
.mc-incident:last-child { border-bottom: 1px solid var(--grey-mid); }
.mc-incident a { text-decoration: none; display: block; }
.mc-incident-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: var(--near-black); line-height: 1.4; margin-bottom: 0.25rem; transition: color 0.2s; }
.mc-incident a:hover .mc-incident-title { color: var(--orange); }
.mc-incident-date { font-size: 0.68rem; color: var(--grey-text); text-transform: uppercase; letter-spacing: 0.08em; }
.mc-content-band { background: var(--white); padding: 4rem 0; border-top: 1px solid var(--grey-mid); }
.mc-content-label { font-size: 0.68rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--grey-text); font-weight: 700; margin-bottom: 2rem; }
.mc-featured-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--near-black); margin-bottom: 2px; text-decoration: none; transition: background 0.25s; }
.mc-featured-card:hover { background: #2a2a2a; }
.mc-featured-img { background: var(--grey-light); min-height: 280px; display: flex; align-items: center; justify-content: center; color: var(--grey-mid); overflow: hidden; }
.mc-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-featured-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.mc-featured-cat { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 0.75rem; }
.mc-featured-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 1rem; transition: color 0.2s; }
.mc-featured-card:hover .mc-featured-title { color: var(--orange); }
.mc-featured-excerpt { font-family: 'Source Serif 4', serif; font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 1rem; }
.mc-featured-date { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.mc-small-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--grey-mid); }
.mc-small-card { background: var(--white); padding: 2rem; text-decoration: none; transition: background 0.25s; border-bottom: 3px solid transparent; }
.mc-small-card:hover { background: var(--cream); border-bottom-color: var(--near-black); }
.mc-small-cat { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--grey-text); font-weight: 700; margin-bottom: 0.6rem; }
.mc-small-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--near-black); line-height: 1.4; margin-bottom: 0.6rem; transition: color 0.2s; }
.mc-small-card:hover .mc-small-title { color: var(--orange); }
.mc-small-date { font-size: 0.68rem; color: var(--grey-text); text-transform: uppercase; letter-spacing: 0.08em; }
.mc-loading { color: var(--grey-text); font-size: 0.85rem; padding: 1.5rem 0; font-style: italic; font-family: 'Source Serif 4', serif; }

/* ============ PREMI BARNILS ============ */
#premi { background: var(--cream); }
.premi-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.premi-convocatoria { border: 2px dashed var(--grey-mid); padding: 1.25rem 1.75rem; margin: 2rem 0; background: var(--white); }
.premi-convocatoria p { font-family: 'Source Serif 4', serif; font-size: 0.95rem; color: var(--near-black); line-height: 1.7; font-style: italic; }
.premi-guanyador { background: var(--white); border-left: 4px solid var(--orange); padding: 1.25rem 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 1rem; }
.premi-guanyador .label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--orange); font-weight: 700; margin-bottom: 0.4rem; }
.premi-guanyador .guanyador-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--near-black); }
.premi-guanyador .guanyador-obra { font-family: 'Source Serif 4', serif; font-style: italic; color: var(--grey-text); font-size: 0.9rem; margin-top: 0.25rem; }
.premi-visual { background: var(--white); border: 1px solid var(--cream-dark); padding: 3rem; box-shadow: 0 4px 30px rgba(0,0,0,0.06); }
.premi-visual h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--near-black); margin-bottom: 0.75rem; font-weight: 700; }
.premi-visual p { font-family: 'Source Serif 4', serif; color: var(--grey-text); font-size: 0.9rem; line-height: 1.85; margin-bottom: 1rem; }
.premi-categories { margin: 1.5rem 0; }
.premi-cat-row { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--cream-dark); }
.premi-cat-row:first-child { border-top: 1px solid var(--cream-dark); }
.premi-cat-prize { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 900; color: var(--orange); flex-shrink: 0; min-width: 70px; }
.premi-cat-name { font-size: 0.88rem; font-weight: 700; color: var(--near-black); line-height: 1.4; }
.premi-cat-desc { font-family: 'Source Serif 4', serif; font-size: 0.8rem; color: var(--grey-text); margin-top: 0.2rem; line-height: 1.6; }
.premi-supporters { font-size: 0.75rem; color: var(--grey-text); line-height: 1.7; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cream-dark); }
.premi-supporters strong { color: var(--near-black); font-weight: 700; }

/* ============ SOCIS ============ */
#socis { background: var(--white); padding: 0; }
.socis-topbar { background: var(--orange); padding: 0.9rem 0; }
.socis-topbar-inner { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.socis-topbar-inner span { opacity: 0.7; font-weight: 400; letter-spacing: 0.05em; text-transform: none; }
.socis-hero-band { background: var(--near-black); padding: 4.5rem 0; position: relative; overflow: hidden; }
.socis-hero-band::before { content: 'SOCIS'; position: absolute; right: -3rem; top: 50%; transform: translateY(-50%); font-family: 'Playfair Display', serif; font-size: 16rem; font-weight: 900; color: rgba(255,255,255,0.022); pointer-events: none; letter-spacing: -0.05em; white-space: nowrap; }
.socis-hero-inner { display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
.socis-hero-text { flex: 1; min-width: 280px; }
.socis-hero-text h2 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.socis-hero-text h2 em { color: var(--orange); font-style: italic; }
.socis-hero-text p { color: rgba(255,255,255,0.7); font-family: 'Source Serif 4', serif; font-size: 1.05rem; line-height: 1.8; }
.socis-stats-row { display: flex; gap: 2.5rem; flex-wrap: wrap; flex-shrink: 0; }
.socis-stat { text-align: center; min-width: 80px; }
.socis-stat-num { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 900; color: var(--orange); line-height: 1; }
.socis-stat-lbl { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); margin-top: 0.35rem; font-weight: 600; }
.socis-body { padding: 5rem 0; }
.socis-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.benefits-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--near-black); margin-bottom: 1.5rem; }
.benefits-list { list-style: none; margin-bottom: 2.5rem; }
.benefits-list li { display: flex; align-items: flex-start; gap: 0.85rem; color: var(--text); font-size: 0.95rem; padding: 0.85rem 0; border-bottom: 1px solid var(--grey-light); line-height: 1.5; }
.benefits-list li:last-child { border-bottom: none; }
.benefit-icon { width: 22px; height: 22px; background: var(--orange); color: var(--white); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.socis-testimonial { background: var(--cream); border-left: 4px solid var(--orange); padding: 1.5rem 2rem; margin: 2.5rem 0; }
.socis-testimonial blockquote { font-family: 'Source Serif 4', serif; font-size: 1rem; font-style: italic; color: var(--near-black); line-height: 1.7; margin-bottom: 0.75rem; }
.testimonial-attr { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-text); font-weight: 700; }
.socis-form-card { background: var(--white); border: 2px solid var(--grey-mid); padding: 3rem; position: sticky; top: 90px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.socis-form-card h3 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--near-black); margin-bottom: 0.4rem; }
.socis-form-card .subtitle { font-family: 'Source Serif 4', serif; font-size: 0.92rem; color: var(--grey-text); margin-bottom: 2rem; line-height: 1.6; }
.quota-options { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; margin-bottom: 1.25rem; }
.quota-option { border: 2px solid var(--grey-mid); padding: 1.1rem 0.75rem; cursor: pointer; transition: all 0.2s; text-align: center; }
.quota-option:hover, .quota-option.selected { border-color: var(--orange); background: var(--orange-light); }
.quota-option .price { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--orange); line-height: 1.2; }
.quota-option .type { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-text); font-weight: 700; margin-top: 0.25rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--near-black); margin-bottom: 0.4rem; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--grey-mid); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text); outline: none; transition: border-color 0.2s; background: var(--white); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--orange); }
.btn-full { width: 100%; background: var(--orange); color: var(--white); border: 2px solid var(--orange); padding: 1.1rem; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.2s; font-family: 'DM Sans', sans-serif; margin-top: 0.5rem; }
.btn-full:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.form-note { font-size: 0.72rem; color: #aaa; margin-top: 0.75rem; text-align: center; line-height: 1.6; }
.form-note a { color: var(--orange); text-decoration: none; }
.motius-link { display: flex; align-items: center; gap: 0.75rem; background: var(--grey-light); padding: 1rem 1.25rem; text-decoration: none; color: var(--near-black); font-size: 0.85rem; font-weight: 600; margin-top: 1.5rem; transition: background 0.2s; border-left: 3px solid var(--orange); }
.motius-link:hover { background: var(--cream-dark); }
.motius-link span { margin-left: auto; color: var(--orange); }

/* ============ BOOKS ============ */
#colleccio { background: var(--grey-light); }
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 3rem; background: var(--grey-mid); }
.book-card { background: var(--white); transition: all 0.25s; cursor: pointer; position: relative; overflow: hidden; }
.book-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); z-index: 1; }
.book-cover { height: auto; aspect-ratio: 3/4; background: var(--white); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.book-cover-img { width: 100%; height: auto; max-height: 100%; display: block; object-fit: contain; background: var(--white); transition: transform 0.4s; }
.book-card:hover .book-cover-img { transform: scale(1.03); }
.book-cover-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(145deg, var(--cream-dark), var(--cream)); padding: 1rem; text-align: center; }
.book-cover-fallback .book-spine { font-family: 'Playfair Display', serif; font-size: 0.9rem; font-style: italic; color: var(--near-black); line-height: 1.3; }
.book-overlay { position: absolute; inset: 0; background: rgba(227,82,28,0.93); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.book-card:hover .book-overlay { opacity: 1; }
.book-overlay-text { color: var(--white); font-family: 'Source Serif 4', serif; font-size: 0.85rem; line-height: 1.6; }
.book-overlay-link { display: inline-block; margin-top: 0.75rem; color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 0.2rem; font-family: 'DM Sans', sans-serif; }
.book-info { padding: 1.25rem; border-top: 1px solid var(--grey-light); }
.book-num { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--orange); font-weight: 700; margin-bottom: 0.4rem; }
.book-title { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; color: var(--near-black); margin-bottom: 0.3rem; line-height: 1.3; transition: color 0.2s; }
.book-card:hover .book-title { color: var(--orange); }
.book-author { font-size: 0.78rem; color: var(--grey-text); font-style: italic; }
.book-price { font-size: 0.78rem; font-weight: 700; color: var(--orange); margin-top: 0.4rem; }

/* ============ QUI SOM ============ */
#quisom { background: var(--white); }
.quisom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 3rem; background: var(--grey-mid); }
.pillar-card { background: var(--white); padding: 2.5rem; position: relative; overflow: hidden; transition: background 0.3s; border-top: 4px solid transparent; }
.pillar-card:hover { background: var(--cream); border-top-color: var(--orange); }
.pillar-num { font-family: 'Playfair Display', serif; font-size: 5rem; font-weight: 900; color: rgba(227,82,28,0.07); line-height: 1; position: absolute; top: 0.75rem; right: 1.25rem; }
.pillar-card h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--near-black); margin-bottom: 1rem; position: relative; z-index: 1; font-weight: 700; }
.pillar-card p { font-family: 'Source Serif 4', serif; color: var(--grey-text); font-size: 0.9rem; line-height: 1.85; position: relative; z-index: 1; }

/* ============ SOCIAL ============ */
#social { background: var(--cream); border-top: 1px solid var(--cream-dark); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2rem; }
.social-card { background: var(--white); border: 2px solid var(--grey-mid); padding: 2rem; transition: border-color 0.3s; }
.social-card:hover { border-color: var(--orange); }
.social-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--grey-light); }
.social-icon { width: 44px; height: 44px; background: var(--near-black); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; transition: background 0.2s; }
.social-card:hover .social-icon { background: var(--orange); }
.social-handle { font-weight: 700; color: var(--near-black); font-size: 0.95rem; }
.social-follow { font-size: 0.75rem; color: var(--grey-text); }
.social-posts { display: flex; flex-direction: column; gap: 0.75rem; }
.social-post { padding: 1rem; background: var(--grey-light); transition: background 0.2s; cursor: pointer; }
.social-post:hover { background: rgba(227,82,28,0.05); }
.social-post p { font-family: 'Source Serif 4', serif; font-size: 0.88rem; color: var(--text); line-height: 1.65; margin-bottom: 0.5rem; }
.social-post-date { font-size: 0.68rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.1em; }

#twitter-feed {
  min-height: 350px;
  width: 100%;
  overflow: auto;
}

/* ============ PAGE HEADERS ============ */
.page-header { background: var(--white); padding: 4rem 0 3rem; border-bottom: 3px solid var(--orange); margin-top: 71px; }
.page-title { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; color: var(--near-black); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.page-lead { font-family: 'Source Serif 4', serif; font-size: 1.1rem; color: var(--grey-text); max-width: 640px; line-height: 1.85; }

/* ============ SINGLE POST ============ */
.post-header { background: var(--white); padding: 4rem 0 3rem; border-bottom: 3px solid var(--orange); margin-top: 71px; }
.post-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 900; color: var(--near-black); line-height: 1.1; letter-spacing: -0.02em; max-width: 800px; margin-bottom: 1.25rem; }
.post-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.post-meta-cat { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-weight: 700; background: var(--orange-light); padding: 0.35rem 0.75rem; }
.post-meta-date { font-size: 0.78rem; color: var(--grey-text); }
.post-featured-img { width: 100%; max-height: 520px; object-fit: cover; display: block; margin: 2.5rem 0; border: 1px solid var(--cream-dark); }
.post-content { max-width: 720px; }
.post-content p { font-family: 'Source Serif 4', serif; font-size: 1.05rem; color: var(--text); line-height: 1.95; margin-bottom: 1.5rem; }
.post-content h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--near-black); margin: 2.5rem 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--grey-mid); }
.post-content h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--near-black); margin: 2rem 0 0.75rem; }
.post-content blockquote { background: var(--cream); border-left: 4px solid var(--orange); padding: 1.25rem 1.75rem; margin: 2rem 0; font-style: italic; font-family: 'Source Serif 4', serif; }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { font-family: 'Source Serif 4', serif; font-size: 1rem; color: var(--text); line-height: 1.85; margin-bottom: 0.5rem; }
.post-content img { max-width: 100%; height: auto; }
.post-sidebar { position: sticky; top: 90px; }
.post-back { color: var(--orange); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--grey-mid); }
.post-back:hover { gap: 0.8rem; }

/* ============ ARCHIVE ============ */
.archive-header { background: var(--white); padding: 4rem 0 3rem; border-bottom: 3px solid var(--orange); margin-top: 71px; }
.article-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-bottom: 3px solid var(--orange); margin-bottom: 2px; text-decoration: none; transition: background 0.25s; }
.article-hero:hover { background: var(--cream); }
.article-hero-img { background: var(--cream); min-height: 380px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.article-hero:hover .article-hero-img img { transform: scale(1.03); }
.article-hero-body { padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: var(--near-black); }
.article-hero-cat { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 0.75rem; }
.article-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 0.75rem; transition: color 0.2s; }
.article-hero:hover .article-hero-title { color: var(--orange); }
.article-hero-excerpt { font-family: 'Source Serif 4', serif; font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 1rem; }
.article-hero-date { font-size: 0.7rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.article-medium { display: grid; grid-template-columns: 360px 1fr; gap: 0; background: var(--white); border-bottom: 3px solid transparent; margin-bottom: 2px; text-decoration: none; transition: all 0.25s; }
.article-medium:hover { border-bottom-color: var(--orange); background: var(--cream); }
.article-medium-img { background: var(--cream); height: 260px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.article-medium-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.article-medium:hover .article-medium-img img { transform: scale(1.03); }
.article-medium-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.article-medium-cat { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 0.75rem; }
.article-medium-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--near-black); line-height: 1.25; margin-bottom: 0.75rem; transition: color 0.2s; }
.article-medium:hover .article-medium-title { color: var(--orange); }
.article-medium-excerpt { font-family: 'Source Serif 4', serif; font-size: 0.9rem; color: var(--grey-text); line-height: 1.75; margin-bottom: 1rem; }
.article-medium-date { font-size: 0.7rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.08em; }
.article-small-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--grey-mid); margin-bottom: 2px; }
.article-small { background: var(--white); padding: 1.75rem; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.25s; }
.article-small:hover { border-bottom-color: var(--orange); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.article-small-cat { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 0.5rem; }
.article-small-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--near-black); line-height: 1.35; margin-bottom: 0.6rem; transition: color 0.2s; }
.article-small:hover .article-small-title { color: var(--orange); }
.article-small-date { font-size: 0.68rem; color: #aaa; text-transform: uppercase; letter-spacing: 0.08em; }
.pagination-section { margin-top: 4rem; padding-top: 2.5rem; border-top: 2px solid var(--grey-mid); }
.pagination-label { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--near-black); margin-bottom: 1.25rem; }
.wp-pagenavi, .pagination-pages { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wp-pagenavi a, .wp-pagenavi span, .page-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 0.5rem; border: 2px solid var(--grey-mid); font-size: 0.82rem; font-weight: 700; text-decoration: none; color: var(--near-black); transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.wp-pagenavi a:hover, .page-pill:hover, .wp-pagenavi span.current { border-color: var(--orange); background: var(--orange); color: var(--white); }
/*FG*/
ul.page-numbers{}
ul.page-numbers li { display: inline-flex; }
ul.page-numbers li a, ul.page-numbers li span {display: inline-flex;  justify-content: center;  align-items: center;min-width: 40px; height: 40px; padding: 0 0.5rem; border: 2px solid var(--grey-mid); font-size: 0.82rem; font-weight: 700; text-decoration: none; color: var(--near-black); transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
ul.page-numbers li a:hover, ul.page-numbers li span.current{ border-color: var(--orange); background: var(--orange); color: var(--white); }
/*FG*/
/* ============ FOOTER ============ */
footer { background: var(--near-black); color: rgba(255,255,255,0.55); padding: 4rem 0 2rem; border-top: 4px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-family: 'Source Serif 4', serif; font-size: 0.88rem; line-height: 1.85; max-width: 280px; margin-bottom: 1.5rem; }
.footer-brand .site-logo-footer { height: 40px; width: auto; opacity: 0.8; margin-bottom: 1rem; display: block; }
.footer-socials { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.footer-social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.8rem; font-weight: 700; transition: all 0.2s; }
.footer-social-link:hover { background: var(--orange); color: var(--white); }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: 0.35rem 0; }
.footer-col ul li a { color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; display: flex; align-items: center; gap: 0.4rem; }
.footer-col ul li a::before { content: '→'; font-size: 0.7rem; color: var(--orange); opacity: 0; transition: opacity 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a:hover::before { opacity: 1; }
.footer-address { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.85; margin-top: 1rem; font-style: normal; }
.footer-address a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-address a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--orange); }

/* ============ SCROLL ANIMATIONS ============ */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============ 404 / SEARCH ============ */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; margin-top: 71px; }
.error-num { font-family: 'Playfair Display', serif; font-size: 10rem; font-weight: 900; color: var(--orange); line-height: 1; opacity: 0.3; }
.search-results-grid { display: flex; flex-direction: column; gap: 2px; background: var(--grey-mid); margin-top: 2rem; }
.search-result { background: var(--white); padding: 2rem; text-decoration: none; border-bottom: 3px solid transparent; transition: all 0.25s; }
.search-result:hover { border-bottom-color: var(--orange); background: var(--cream); }
.search-result-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--near-black); margin-bottom: 0.5rem; transition: color 0.2s; }
.search-result:hover .search-result-title { color: var(--orange); }
.search-result-excerpt { font-family: 'Source Serif 4', serif; font-size: 0.9rem; color: var(--grey-text); line-height: 1.7; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { padding: 4rem 3rem; }
  .hero-title { font-size: clamp(2.5rem, 7vw, 4.5rem); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-column: span 2; grid-template-columns: 1fr; }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mc-two-col { grid-template-columns: 1fr; }
  .mc-small-grid { grid-template-columns: 1fr 1fr; }
  .mc-featured-card { grid-template-columns: 1fr; }
  .premi-layout { grid-template-columns: 1fr; gap: 3rem; }
  .socis-layout { grid-template-columns: 1fr; }
  .quisom-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .socis-form-card { position: static; }
  .socis-hero-inner { flex-direction: column; align-items: flex-start; }
  .article-hero { grid-template-columns: 1fr; }
  .article-medium { grid-template-columns: 1fr; }
  .article-small-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav#main-nav { display: none; }
  nav#main-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--grey-mid); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
  nav#main-nav.open a { height: auto; padding: 1rem 2rem; border-right: none; border-left: none; border-bottom: 1px solid var(--grey-light); }
  nav#main-nav.open a:last-child { border-bottom: none; }
  .hamburger { display: flex; }
  .hero-inner { padding: 3rem 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-featured { grid-column: span 1; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-form-inline { min-width: auto; width: 100%; flex-direction: column; }
  .newsletter-form-inline input { border-right: 2px solid var(--grey-mid); }
  .newsletter-band-inner { flex-direction: column; }
  .quota-options { grid-template-columns: 1fr 1fr; }
  .socis-form-card { padding: 2rem; }
  .mc-small-grid { grid-template-columns: 1fr; }
  .mc-featured-body { padding: 2rem; }
  .article-small-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .books-grid { grid-template-columns: 1fr; }
  .quota-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .hero-title { font-size: clamp(2.2rem, 9vw, 3rem); }
}
