:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --bg-soft-2: #151515;
  --panel: rgba(20, 20, 20, 0.72);
  --panel-strong: rgba(10, 10, 10, 0.9);
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --line: rgba(255,255,255,0.08);

  --brand: #c8102e;
  --brand-2: #e11d2f;
  --brand-3: #7a0c1d;

  --accent-blue: #38bdf8;
  --accent-blue-2: #0ea5e9;
  --accent-blue-3: #7dd3fc;
  --accent-blue-soft: rgba(56,189,248,0.12);
  --accent-blue-soft-2: rgba(14,165,233,0.10);
  --accent-blue-border: rgba(56,189,248,0.28);
  --accent-blue-glow: rgba(56,189,248,0.18);

  --white: #ffffff;
  --shadow-xl: 0 30px 90px rgba(0,0,0,0.45);
  --shadow-md: 0 16px 40px rgba(0,0,0,0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 86px;
  --section-y: 110px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(200,16,46,0.16), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(56,189,248,0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(122,12,29,0.10), transparent 28%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 55%, #111111 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: rgba(56,189,248,0.22);
  color: var(--white);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #eef9ff;
  background: linear-gradient(135deg, rgba(200,16,46,0.10), rgba(56,189,248,0.10));
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent-blue));
  box-shadow: 0 0 0 7px rgba(56,189,248,0.08);
}

.btn,
.btn-outline,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), #b70f29 55%, var(--brand-2));
  border: none;
  box-shadow: 0 16px 34px rgba(200,16,46,0.24);
}

.btn:hover,
.btn-outline:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.btn-outline,
.filter-chip {
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--accent-blue-border);
  color: var(--accent-blue-3);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--accent-blue-soft), var(--accent-blue-soft-2));
  border-color: var(--accent-blue-border);
  color: #ffffff;
  box-shadow: 0 10px 24px var(--accent-blue-glow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-image-mark {
  display: block;
  width: 240px;
  height: 52px;
  background-image: url('https://fccommerciale.it/wp-content/uploads/2020/02/FC_colore.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.category-hero {
  padding: 72px 0 34px;
  position: relative;
}

.category-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.category-hero-copy,
.category-hero-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.category-hero-copy::before,
.category-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(56,189,248,0.05), transparent 35%, rgba(200,16,46,0.05));
  pointer-events: none;
}

.category-hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  position: relative;
  z-index: 1;
}

.category-hero-copy .section-intro,
.category-hero-panel .section-intro {
  position: relative;
  z-index: 1;
}

.category-meta {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.category-meta-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.category-meta-item strong {
  color: var(--accent-blue-3);
}

.category-hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.catalog-toolbar {
  padding: 14px;
  margin: 20px 0 28px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}

.catalog-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-toolbar-label {
  font-weight: 700;
  color: var(--white);
  margin-right: 6px;
}

.products-section {
  padding: 0 0 100px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(56,189,248,0.08), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue-border);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32), 0 0 18px rgba(56,189,248,0.08);
}

.product-card:hover::after {
  opacity: 1;
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #151515;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-blue-soft);
  border: 1px solid var(--accent-blue-border);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.product-category {
  display: inline-block;
  margin-bottom: 10px;
  color: #d4f2ff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  transition: color 0.25s ease;
}

.product-card:hover .product-title {
  color: var(--accent-blue);
}

.product-description {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.product-description.is-clamped {
  max-height: calc(1.6em * 4);
}

.product-description:not(.is-clamped) {
  max-height: 1000px;
}

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.read-more-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent-blue);
  font-weight: 800;
  cursor: pointer;
}

.read-more-btn:hover {
  color: var(--accent-blue-3);
}

.product-link {
  color: var(--accent-blue);
  font-weight: 800;
}

.product-link:hover {
  color: var(--accent-blue-3);
}

.accent-number {
  color: var(--accent-blue);
  font-weight: 900;
  font-size: 1.1rem;
}

.empty-state {
  display: none;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.20);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-blue-3);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 74px;
  }

  .logo-image-mark {
    width: 190px;
    height: 44px;
  }

  .nav {
    display: none;
  }

  .category-hero {
    padding-top: 36px;
  }

  .category-hero-copy,
  .category-hero-panel {
    padding: 22px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-body {
    padding: 18px;
  }

  .catalog-toolbar-row {
    align-items: flex-start;
  }
}