/* ============================================================
   KERASTONE ITALIA — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --blue-dark: #0a1f44;
  --blue-main: #1a4fa0;
  --blue-light: #2e6fd4;
  --blue-pale: #e8f0fb;
  --accent: #f0a500;
  --accent-dark: #c87d00;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --gray-100: #eef1f6;
  --gray-300: #bcc5d3;
  --gray-500: #6b7a96;
  --gray-700: #3a4558;
  --black: #0d1117;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 8px rgba(10, 31, 68, .08);
  --shadow-md: 0 6px 24px rgba(10, 31, 68, .14);
  --shadow-lg: 0 16px 48px rgba(10, 31, 68, .18);

  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --nav-height: 72px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--blue-dark);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -.5px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.3px;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
}

h4 {
  font-size: 1.15rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  display: block;
  margin-bottom: .6rem;
}

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

section {
  padding: 80px 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
}

.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: var(--blue-dark);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 165, 0, .3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-main);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-main);
  border-color: var(--blue-main);
}

.btn-ghost:hover {
  background: var(--blue-main);
  color: var(--white);
}

/* ── Top Bar ───────────────────────────────────────────────── */
.topbar {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, .75);
  font-size: .82rem;
  padding: .45rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar a {
  transition: color var(--transition);
}

.topbar a:hover {
  color: var(--accent);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.topbar-item svg {
  opacity: .7;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: .2rem .5rem;
}

.lang-switch a {
  padding: .15rem .45rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .5px;
  transition: var(--transition);
}

.lang-switch a.active {
  background: var(--accent);
  color: var(--blue-dark);
}

/* ── Navigation ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--nav-height);
  box-shadow: 0 2px 16px rgba(10, 31, 68, .1);
  transition: box-shadow var(--transition);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-logo img {
  height: 42px;
  width: auto;
}

.navbar-logo .logo-text {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--blue-dark);
  line-height: 1;
}

.navbar-logo .logo-text span {
  color: var(--blue-light);
}

.navbar-logo .logo-sub {
  font-size: .65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .6rem .9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue-main);
  background: var(--blue-pale);
}

.nav-link svg {
  transition: transform var(--transition);
}

.nav-item:hover>.nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: .6rem .9rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--blue-pale);
  color: var(--blue-main);
}

.navbar-cta {
  margin-left: .5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height) - 34px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 31, 68, .9) 0%, rgba(26, 79, 160, .7) 60%, rgba(10, 31, 68, .85) 100%);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Geometric accent lines */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(160deg, transparent 0%, rgba(46, 111, 212, .12) 100%);
  border-left: 1px solid rgba(255, 255, 255, .08);
  z-index: 2;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.hero .container {
  position: relative;
  z-index: 3;
  padding: 80px 0;
}

.hero-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(240, 165, 0, .15);
  border: 1px solid rgba(240, 165, 0, .3);
  color: var(--accent);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .3rem;
  font-weight: 500;
}

/* ── Section Header ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── Product Categories ────────────────────────────────────── */
.products-section {
  background: var(--off-white);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  height: 200px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-card-image img {
  transform: scale(1.07);
}

.product-card-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: var(--blue-main);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 20px;
}

.product-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}

.product-card-body p {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.product-card-norm {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--blue-light);
  background: var(--blue-pale);
  padding: .2rem .6rem;
  border-radius: 3px;
  margin-top: 1rem;
  margin-bottom: .75rem;
}

.product-card-link {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--blue-main);
  margin-top: .5rem;
  transition: var(--transition);
}

.product-card-link:hover {
  gap: .8rem;
  color: var(--blue-light);
}

.product-card-link svg {
  transition: transform var(--transition);
}

.product-card-link:hover svg {
  transform: translateX(3px);
}

/* Category cards (homepage) */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--blue-dark);
  aspect-ratio: 1/1;
  cursor: pointer;
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transition: var(--transition);
}

.category-card:hover .category-card-bg {
  opacity: .45;
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 31, 68, .85) 100%);
}

.category-card-icon {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, .12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.category-card-icon svg {
  color: var(--accent);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.category-card-content h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: .4rem;
}

.pdf-info h3 {
  color: var(--white);

}

.category-card-content p {
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  line-height: 1.5;
}

.category-card-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.category-card:hover .category-card-arrow {
  transform: scale(1.15);
}

.category-card-arrow svg {
  color: var(--blue-dark);
}

/* ── Why Us ─────────────────────────────────────────────────── */
.why-section {
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.why-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 111, 212, .2) 0%, transparent 70%);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-text h2 {
  color: var(--white);
}

.why-text p {
  color: rgba(255, 255, 255, .7);
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.why-features {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.why-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(46, 111, 212, .2);
  border: 1px solid rgba(46, 111, 212, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-icon svg {
  color: var(--accent);
}

.why-feature-text h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .3rem;
}

.why-feature-text p {
  color: rgba(255, 255, 255, .6);
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
}

.why-image-side {
  position: relative;
}

.why-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-dark) 100%);
}

.why-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}

.why-stats-overlay {
  position: absolute;
  bottom: 2rem;
  left: -2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.why-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-main);
  line-height: 1;
}

.why-stat-label {
  font-size: .75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .25rem;
}

/* ── Certifications ────────────────────────────────────────── */
.certs-section {
  background: var(--white);
}

.cert-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.cert-item:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.cert-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  background: var(--blue-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-icon svg {
  color: var(--blue-main);
}

.cert-item h4 {
  font-size: 1rem;
  color: var(--blue-dark);
}

.cert-item p {
  font-size: .85rem;
  color: var(--gray-500);
  margin-top: .4rem;
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--blue-main) 0%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 60L60 0M-10 10L10-10M50 70L70 50' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E");
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  color: var(--white);
}

.cta-inner p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  margin: 1rem auto 2rem;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, .65);
}

.footer-top {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
}

.footer-brand .logo-text span {
  color: var(--accent);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: .88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-brand .contact-info {
  margin-top: 1.5rem;
  display: grid;
  gap: .6rem;
}

.footer-brand .contact-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
}

.footer-brand .contact-item svg {
  opacity: .6;
  flex-shrink: 0;
}

.footer-brand .contact-item a {
  transition: color var(--transition);
}

.footer-brand .contact-item a:hover {
  color: var(--accent);
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: grid;
  gap: .5rem;
}

.footer-col a {
  font-size: .88rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
}

.footer-bottom a {
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: .75rem;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: var(--blue-dark);
}

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 100%);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(240, 165, 0, .1) 0%, transparent 70%);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-hero p {
  color: rgba(255, 255, 255, .75);
  margin-top: .75rem;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .5);
}

.breadcrumb a {
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--accent);
}

/* ── Utility ────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: .5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* ── Scroll animations — CSS puro, no JS ───────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-header,
.category-card,
.product-card,
.cert-item,
.cta-inner,
.why-feature,
.why-image-card {
  animation: fadeInUp .6s ease both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Fallback per browser che non supportano scroll-driven animations */
@supports not (animation-timeline: view()) {

  .section-header,
  .category-card,
  .product-card,
  .cert-item,
  .cta-inner,
  .why-feature,
  .why-image-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .section-header,
  .category-card,
  .product-card,
  .cert-item,
  .cta-inner,
  .why-feature,
  .why-image-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ── Mobile Navigation Overlay ──────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 31, 68, .6);
  z-index: 90;
  backdrop-filter: blur(4px);
}

.nav-overlay.open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--white);
  z-index: 95;
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transition: right var(--transition);
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-link {
  display: block;
  padding: .9rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--blue-dark);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--blue-main);
}

.mobile-sub-link {
  display: block;
  padding: .6rem .75rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition);
}

.mobile-sub-link:hover {
  color: var(--blue-main);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .why-grid {
    gap: 2.5rem;
  }

  .why-stats-overlay {
    left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  section {
    padding: 60px 0;
  }

  .topbar-left {
    display: none;
  }

  .navbar-nav,
  .navbar-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    min-height: 85vh;
  }

  .hero::before {
    display: none;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .why-image-side {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .topbar .container {
    justify-content: center;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
  }
}

/* ============================================================
   ALIAS E CLASSI AGGIUNTIVE — Pagine Prodotto
   ============================================================ */

/* Fix: titoli bianchi su hero scuro pagine prodotto */
.product-hero h1,
.product-hero h2,
.product-hero h3,
.product-hero h4 {
  color: #fff;
}

.product-hero .breadcrumb,
.product-hero .breadcrumb a,
.product-hero .breadcrumb span {
  color: rgba(255, 255, 255, .5);
}

.product-hero .breadcrumb a:hover {
  color: var(--accent);
}

/* Alias variabili mancanti */
:root {
  --gray: var(--gray-500);
  --bg-light: var(--off-white);
}

/* .section-tag — alias di .section-label */
.section-tag {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-light);
  display: block;
  margin-bottom: .6rem;
}

/* .product-card-img — alias di .product-card-image */
.product-card-img {
  height: 200px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card-img img {
  height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-card-img img {
  transform: scale(1.07);
}

/* .product-card-title — alias di .product-card-body h3 */
.product-card-title {
  font-size: 1.3rem;
  margin-bottom: .5rem;
  font-family: var(--font-display);
  color: var(--blue-dark);
}

/* .product-card-desc — alias di .product-card-body p */
.product-card-desc {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: .5rem;
}

/* .footer-grid — layout grid footer pagine prodotto */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 0 2.5rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2.5rem 0 1.5rem;
  }
}

/* .contact-list e .contact-item globali (non solo in .footer-brand) */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
  line-height: 1.5;
}

.contact-item svg {
  opacity: .6;
  flex-shrink: 0;
  margin-top: 1px;
}

.contact-item a {
  color: rgba(255, 255, 255, .65);
  transition: color var(--transition);
}

.contact-item a:hover {
  color: var(--accent);
}