/* =============================================
   PASSIONE BARCA — Design System
   Proposta A: Moderno & Minimal
   ============================================= */

:root {
  --navy:         #1a3a5c;
  --navy-dark:    #0f2540;
  --blue:         #2563eb;
  --blue-light:   #eff6ff;
  --text:         #1e293b;
  --text-sec:     #64748b;
  --text-muted:   #94a3b8;
  --border:       #e2e8f0;
  --surface:      #f8fafc;
  --white:        #ffffff;
  --radius:       8px;
  --radius-lg:    12px;
  --max-w:        780px;
  --max-w-wide:   1100px;
  --amazon-orange:#ff9900;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  line-height: 1.75;
}

a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 600; line-height: 1.3; }

/* === NAVIGATION ============================ */
.site-nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo__img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo__text {
  display: block;
  line-height: 1.2;
}

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-sec);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--navy);
  background: var(--surface);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.2s;
}

/* === HERO ================================== */
.hero {
  background:
    linear-gradient(135deg, rgba(26,58,92,0.88) 0%, rgba(29,78,216,0.82) 100%),
    url("https://images.unsplash.com/photo-1505118380757-91f5f5632de0?auto=format&fit=crop&w=1920&q=80")
    center / cover no-repeat;
  color: white;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: white;
  font-size: 2.4rem;
  line-height: 1.2;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.82;
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.btn-primary {
  display: inline-block;
  background: white;
  color: var(--navy);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: var(--navy);
}

/* === CATEGORIES GRID ====================== */
.categories {
  padding: 3.5rem 1.5rem;
  background: var(--surface);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

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

.category-grid {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.category-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.category-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.category-card__desc {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.55;
}

/* === POSTS GRID ============================ */
.posts-section {
  padding: 3.5rem 1.5rem;
}

.posts-grid {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.posts-grid--small {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.post-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  text-decoration: none;
}

.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.post-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.post-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin: 0.5rem 0 0.6rem;
}

.post-card:hover .post-card__title {
  color: var(--blue);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === CATEGORY BADGES ====================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cat-abbigliamento { background: #dbeafe; color: #1e40af; }
.cat-accessori     { background: #d1fae5; color: #065f46; }
.cat-sicurezza     { background: #fee2e2; color: #991b1b; }

/* === BREADCRUMB ============================ */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-sec);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* === ARTICLE LAYOUT ======================== */
.article-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.article-header {
  margin-bottom: 1.75rem;
}

.article-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.75rem 0 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* === ARTICLE BODY ========================== */
.article-body h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.75rem;
  padding-top: 0.5rem;
}

.article-body h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--navy);
}

.article-body h4 {
  font-size: 1rem;
  margin: 1.5rem 0 0.4rem;
  color: var(--navy);
}

.article-body p { margin-bottom: 1.25rem; text-align: justify; hyphens: auto; }

.article-body ul,
.article-body ol {
  margin: 0.5rem 0 1.25rem 1.5rem;
}

.article-body li { margin-bottom: 0.4rem; }

.article-body img {
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  width: 100%;
  object-fit: cover;
}

.article-body strong { color: var(--navy); }

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--navy); }

.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
  color: var(--text-sec);
  font-style: italic;
}

/* === AMAZON PRODUCT CARD =================== */
.amazon-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  text-decoration: none;
  background: white;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.amazon-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.amazon-card__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.amazon-card__info { flex: 1; min-width: 0; }

.amazon-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  line-height: 1.4;
}

.amazon-card__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.amazon-card__btn {
  background: var(--amazon-orange);
  color: #111;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.15s;
}

.amazon-card:hover .amazon-card__btn {
  filter: brightness(0.92);
}

/* === AFFILIATE DISCLAIMER ================== */
.affiliate-disclaimer {
  font-size: 0.875rem;
  color: var(--text-sec);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}

/* === RELATED POSTS ========================= */
.related-posts {
  margin-top: 3rem;
}

.related-posts h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* === STATIC PAGES ========================== */
.page-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2rem;
}

/* === CATEGORY PAGE ========================= */
.category-page {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.category-page-header {
  margin-bottom: 2.5rem;
}

.category-page-header h1 {
  font-size: 1.75rem;
  margin-top: 0.5rem;
}

.category-page-header p {
  color: var(--text-sec);
  margin-top: 0.4rem;
}

/* === FOOTER ================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.site-footer a:hover { color: white; text-decoration: underline; }

.footer-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.footer-note {
  font-size: 0.78rem;
  opacity: 0.55;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* === RESPONSIVE ============================ */
@media (max-width: 900px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

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

  .nav-links a { padding: 10px 14px; font-size: 1rem; }

  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .category-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.5rem; }

  .amazon-card {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .amazon-card__btn { width: 100%; text-align: center; padding: 10px; }
}

/* === CATEGORY CARD CON IMMAGINE ============ */
.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  text-decoration: none;
  display: block;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.category-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.category-card__img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}

.category-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.category-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.category-card__desc {
  font-size: 0.875rem;
  color: var(--text-sec);
  line-height: 1.55;
}

/* === HERO CTA ============================== */
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-fb:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: white;
}

/* === NAV FACEBOOK ICON ==================== */
.nav-fb {
  display: flex;
  align-items: center;
  color: #1877f2 !important;
  padding: 6px 8px !important;
}

.nav-fb:hover {
  background: #e7f0fd !important;
  color: #1877f2 !important;
}

/* === FOOTER FACEBOOK ====================== */
.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: opacity 0.15s;
}

.fb-btn:hover { opacity: 0.88; color: white; }

.footer-copy { margin-bottom: 0.5rem; }

/* === FACEBOOK BANNER ====================== */
.fb-banner {
  background: #e7f0fd;
  border-top: 1px solid #c3d9fa;
  padding: 2.5rem 1.5rem;
}

.fb-banner__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fb-banner__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.fb-banner__sub {
  font-size: 0.9rem;
  color: var(--text-sec);
}

.fb-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877f2;
  color: white;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.fb-banner__btn:hover { opacity: 0.88; color: white; }

@media (max-width: 640px) {
  .fb-banner__inner { flex-direction: column; text-align: center; }
  .fb-banner__btn { width: 100%; justify-content: center; }
  .hero__cta { flex-direction: column; align-items: center; }
}

/* === FACEBOOK BOX IN OGNI POST ============= */
.post-fb-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #e7f0fd;
  border: 1px solid #c3d9fa;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.post-fb-box__text strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.post-fb-box__text p {
  font-size: 0.875rem;
  color: var(--text-sec);
  margin: 0;
}

@media (max-width: 640px) {
  .post-fb-box { flex-direction: column; text-align: center; }
  .post-fb-box .fb-btn { width: 100%; justify-content: center; }
}


