/* ========================================================
   ITALPLAST INDUSTRIES S.p.A. — Premium Industrial Site
   Design: dark tech + orange/teal, Space Grotesk typography
   ======================================================== */

:root {
  /* Dark palette */
  --ip-ink: #0a1828;
  --ip-ink-2: #0f2138;
  --ip-ink-3: #15304f;
  --ip-graphite: #1e3a5f;
  --ip-slate: #2b4971;
  /* Accents */
  --ip-orange: #ff6b35;
  --ip-orange-hi: #ff8858;
  --ip-orange-deep: #e8541f;
  --ip-teal: #14b8a6;
  --ip-teal-hi: #2dd4bf;
  /* Neutrals */
  --ip-bg: #f6f8fb;
  --ip-bg-alt: #eef2f7;
  --ip-white: #ffffff;
  --ip-line: #e2e8f0;
  --ip-line-2: #cbd5e1;
  --ip-text: #1e293b;
  --ip-text-2: #475569;
  --ip-text-3: #64748b;
  /* Status */
  --ip-ok: #10b981;
  --ip-warn: #f59e0b;
  --ip-err: #ef4444;
  /* Type */
  --ip-font: 'Inter', system-ui, -apple-system, sans-serif;
  --ip-font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ip-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Effects */
  --ip-r: 12px;
  --ip-r-lg: 20px;
  --ip-r-xl: 28px;
  --ip-shadow-sm: 0 2px 8px rgba(10,24,40,0.06);
  --ip-shadow: 0 8px 24px rgba(10,24,40,0.10);
  --ip-shadow-lg: 0 20px 60px rgba(10,24,40,0.16);
  --ip-shadow-xl: 0 30px 80px rgba(10,24,40,0.22);
  --ip-glow-orange: 0 0 60px rgba(255,107,53,0.35);
  --ip-glow-teal: 0 0 60px rgba(20,184,166,0.35);
  --ip-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ip-trans: all 0.35s var(--ip-ease);
  --ip-max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--ip-orange); color: #fff; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ip-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ip-text);
  background: var(--ip-bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--ip-trans); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ip-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ip-ink);
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { color: var(--ip-text-2); }

.container {
  max-width: var(--ip-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ========================================================
   TOP UTILITY BAR (contact info, language)
   ======================================================== */
.top-bar {
  background: var(--ip-ink);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.top-bar a { color: rgba(255,255,255,0.7); }
.top-bar a:hover { color: var(--ip-orange); }
.top-bar__left { display: flex; gap: 22px; flex-wrap: wrap; }
.top-bar__left span, .top-bar__left a { display: inline-flex; align-items: center; gap: 6px; }
.top-bar__left i { color: var(--ip-orange); }
.top-bar__right { display: flex; gap: 14px; align-items: center; }
.top-bar__lang {
  background: rgba(255,255,255,0.08);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* ========================================================
   MAIN HEADER
   ======================================================== */
.site-header {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ip-line);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 32px;
}
.site-logo {
  font-family: var(--ip-font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ip-ink);
}
.site-logo__mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--ip-orange), var(--ip-orange-deep));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(255,107,53,0.35);
}
.site-logo__text span { color: var(--ip-orange); }
.site-logo__sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 2px; color: var(--ip-text-3); font-weight: 500; display: block; line-height: 1; margin-top: 2px; }

.main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
.main-nav a {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ip-text);
  border-radius: 8px;
  transition: var(--ip-trans);
  position: relative;
}
.main-nav a:hover { color: var(--ip-orange); background: rgba(255,107,53,0.06); }
.main-nav a.active { color: var(--ip-orange); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--ip-orange);
  border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown__btn::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  margin-left: 6px;
  opacity: 0.5;
}
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: 14px;
  box-shadow: var(--ip-shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: var(--ip-trans);
}
.nav-dropdown:hover .nav-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__menu a { padding: 10px 12px; display: block; border-radius: 8px; font-size: 0.87rem; font-weight: 500; }
.nav-dropdown__menu a::after { display: none; }

.header-ctas { display: flex; align-items: center; gap: 10px; }

.mobile-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--ip-ink);
  color: #fff;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--ip-font);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 10px;
  transition: var(--ip-trans);
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ip-orange);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,107,53,0.3);
}
.btn--primary:hover {
  background: var(--ip-orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255,107,53,0.45);
}
.btn--dark { background: var(--ip-ink); color: #fff; }
.btn--dark:hover { background: var(--ip-graphite); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ip-ink); border: 1.5px solid var(--ip-line-2); }
.btn--outline:hover { border-color: var(--ip-ink); background: var(--ip-ink); color: #fff; }
.btn--ghost-light { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(10px); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn--teal { background: var(--ip-teal); color: #fff; box-shadow: 0 8px 24px rgba(20,184,166,0.3); }
.btn--teal:hover { background: var(--ip-teal-hi); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 0.8rem; }
.btn--lg { padding: 16px 34px; font-size: 0.95rem; }
.btn--full { width: 100%; }

/* ========================================================
   HERO — Homepage
   ======================================================== */
.hero {
  background: linear-gradient(135deg, var(--ip-ink) 0%, var(--ip-ink-2) 60%, var(--ip-ink-3) 100%);
  color: #fff;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,53,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20,184,166,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,107,53,0.12);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--ip-orange-hi);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--ip-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero h1 { color: #fff; margin-bottom: 26px; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--ip-orange), var(--ip-teal-hi)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__text { color: rgba(255,255,255,0.75); font-size: 1.08rem; line-height: 1.8; max-width: 560px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px; }
.hero__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.kpi__value {
  font-family: var(--ip-font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.kpi__value sup { color: var(--ip-orange); font-size: 0.6em; margin-left: 3px; }
.kpi__label { font-size: 0.73rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 8px; font-weight: 500; }

/* Hero visual (right side) */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--ip-r-xl);
  overflow: hidden;
  box-shadow: var(--ip-shadow-xl);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__float-card {
  position: absolute;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--ip-shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__float-card--top { top: 24px; left: -36px; }
.hero__float-card--bot { bottom: 24px; right: -20px; }
.hero__float-card i { width: 40px; height: 40px; border-radius: 10px; background: var(--ip-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.hero__float-card--top i { background: var(--ip-teal); }
.hero__float-card strong { font-family: var(--ip-font-display); color: var(--ip-ink); display: block; font-size: 0.95rem; }
.hero__float-card span { font-size: 0.75rem; color: var(--ip-text-3); }

/* Trust bar (logos) */
.trust-bar {
  background: var(--ip-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--ip-line);
}
.trust-bar__label { text-align: center; font-size: 0.73rem; text-transform: uppercase; letter-spacing: 3px; color: var(--ip-text-3); margin-bottom: 22px; font-weight: 600; }
.trust-bar__logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 42px;
  opacity: 0.55;
  filter: grayscale(1);
}
.trust-bar__logos span { font-family: var(--ip-font-display); font-weight: 700; font-size: 1.2rem; color: var(--ip-ink); letter-spacing: -0.02em; }

/* ========================================================
   SECTION SHELL
   ======================================================== */
.section { padding: 100px 0; }
.section--dark { background: var(--ip-ink); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.7); }
.section--gray { background: var(--ip-bg-alt); }

.section-header { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-header--left { text-align: left; margin-left: 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ip-orange);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--ip-orange);
}
.section--dark .section-label { color: var(--ip-orange-hi); }
.section-title { margin-bottom: 18px; }
.section-subtitle { font-size: 1.05rem; line-height: 1.75; color: var(--ip-text-2); }
.section--dark .section-subtitle { color: rgba(255,255,255,0.65); }

/* ========================================================
   BENTO GRID (home features)
   ======================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}
.bento__cell {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--ip-trans);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bento__cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--ip-shadow-lg);
  border-color: var(--ip-orange);
}
.bento__cell--feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, var(--ip-ink), var(--ip-ink-3)); color: #fff; border-color: var(--ip-ink); }
.bento__cell--feature h3 { color: #fff; font-size: 1.8rem; margin-bottom: 14px; }
.bento__cell--feature p { color: rgba(255,255,255,0.75); }
.bento__cell--wide { grid-column: span 2; }
.bento__cell--accent { background: linear-gradient(135deg, var(--ip-orange), var(--ip-orange-deep)); color: #fff; border-color: var(--ip-orange); }
.bento__cell--accent h3, .bento__cell--accent .bento__icon { color: #fff; }
.bento__cell--accent p { color: rgba(255,255,255,0.9); }
.bento__cell--teal { background: linear-gradient(135deg, var(--ip-teal), #0f766e); color: #fff; border-color: var(--ip-teal); }
.bento__cell--teal h3, .bento__cell--teal .bento__icon { color: #fff; }
.bento__cell--teal p { color: rgba(255,255,255,0.9); }
.bento__icon { font-size: 1.6rem; color: var(--ip-orange); margin-bottom: 16px; }
.bento__cell h3 { font-size: 1.25rem; margin-bottom: 10px; }
.bento__stat {
  font-family: var(--ip-font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}

/* ========================================================
   PRODOTTI — Catalog grid
   ======================================================== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 50px;
}
.filter-pill {
  padding: 10px 22px;
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ip-text-2);
  transition: var(--ip-trans);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--ip-orange); color: var(--ip-orange); }
.filter-pill.active { background: var(--ip-ink); color: #fff; border-color: var(--ip-ink); }

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  overflow: hidden;
  transition: var(--ip-trans);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card.hidden { display: none; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ip-shadow-lg);
  border-color: var(--ip-orange);
}
.product-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ip-bg-alt);
  position: relative;
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ip-ease);
}
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10,24,40,0.88);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.product-card__badge--new { background: var(--ip-orange); }
.product-card__body { padding: 22px; flex-grow: 1; display: flex; flex-direction: column; }
.product-card__code {
  font-family: var(--ip-font-mono);
  font-size: 0.72rem;
  color: var(--ip-text-3);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.product-card__title { font-size: 1.05rem; margin-bottom: 8px; }
.product-card__desc { font-size: 0.86rem; color: var(--ip-text-2); line-height: 1.6; flex-grow: 1; margin-bottom: 16px; }
.product-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--ip-line);
}
.product-card__price {
  font-family: var(--ip-font-display);
  font-weight: 700;
  color: var(--ip-ink);
}
.product-card__price small { font-size: 0.7rem; color: var(--ip-text-3); font-weight: 400; display: block; }
.product-card__link { color: var(--ip-orange); font-weight: 600; font-size: 0.85rem; }
.product-card__link:hover { color: var(--ip-orange-deep); }

/* ========================================================
   PAGE HERO (sottopagine)
   ======================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--ip-ink) 0%, var(--ip-ink-2) 100%);
  color: #fff;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
}
.page-hero__content { position: relative; z-index: 2; max-width: 800px; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero__subtitle { font-size: 1.08rem; color: rgba(255,255,255,0.75); max-width: 640px; }
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  font-family: var(--ip-font-mono);
}
.breadcrumb a:hover { color: var(--ip-orange-hi); }
.breadcrumb__sep { opacity: 0.4; }

/* ========================================================
   SETTORI — Industry grid
   ======================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }

.sector-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--ip-r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--ip-trans);
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--ip-shadow-xl); }
.sector-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ip-ease);
}
.sector-card:hover .sector-card__img { transform: scale(1.08); }
.sector-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,24,40,0.3) 30%, rgba(10,24,40,0.95) 100%);
  z-index: 1;
}
.sector-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 30px;
  color: #fff;
  z-index: 2;
}
.sector-card__num {
  font-family: var(--ip-font-mono);
  font-size: 0.78rem;
  color: var(--ip-orange);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.sector-card__title { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.sector-card__text { color: rgba(255,255,255,0.8); font-size: 0.88rem; }

/* ========================================================
   STATS BIG (page block)
   ======================================================== */
.stats-band {
  background: var(--ip-ink);
  color: #fff;
  padding: 80px 0;
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-big__val {
  font-family: var(--ip-font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--ip-orange), var(--ip-teal-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-big__lbl { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-top: 12px; font-weight: 500; }

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--ip-ink);
  color: rgba(255,255,255,0.65);
  padding: 90px 0 0;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ip-orange), var(--ip-teal), var(--ip-orange));
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; }
}
.site-footer__col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-family: var(--ip-font-display);
}
.site-footer__col ul li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer__col a:hover { color: var(--ip-orange-hi); }
.site-footer__brand p { font-size: 0.9rem; line-height: 1.75; margin: 16px 0 24px; }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--ip-trans);
}
.site-footer__social a:hover { background: var(--ip-orange); border-color: var(--ip-orange); transform: translateY(-3px); }
.site-footer__bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.site-footer__legal { display: flex; gap: 18px; }
.site-footer__newsletter {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.site-footer__newsletter input {
  flex: 1;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
}
.site-footer__newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.site-footer__newsletter button {
  background: var(--ip-orange);
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ========================================================
   FORMS
   ======================================================== */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--ip-text);
  font-weight: 600;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--ip-white);
  border: 1.5px solid var(--ip-line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ip-text);
  transition: var(--ip-trans);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ip-orange);
  box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-note { font-size: 0.82rem; color: var(--ip-text-3); display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 18px; }

.form-success {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #047857;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========================================================
   TABS
   ======================================================== */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--ip-line);
  margin-bottom: 40px;
  overflow-x: auto;
}
.tabs-nav button {
  padding: 14px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ip-text-3);
  border-bottom: 2px solid transparent;
  transition: var(--ip-trans);
  white-space: nowrap;
}
.tabs-nav button:hover { color: var(--ip-ink); }
.tabs-nav button.active { color: var(--ip-orange); border-bottom-color: var(--ip-orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ========================================================
   BOOKING / PRENOTA
   ======================================================== */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) { .booking-layout { grid-template-columns: 1.4fr 1fr; } }

.booking-card {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  padding: 40px;
  box-shadow: var(--ip-shadow-sm);
}
.booking-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.booking-card__sub { font-size: 0.92rem; color: var(--ip-text-3); margin-bottom: 28px; }

.step-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  position: relative;
}
.step-progress::before {
  content: '';
  position: absolute;
  top: 18px; left: 6%; right: 6%;
  height: 2px; background: var(--ip-line);
  z-index: 0;
}
.step-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: var(--ip-text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  flex: 1;
}
.step-progress__circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ip-white);
  border: 2px solid var(--ip-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ip-font-display);
  font-weight: 700;
  color: var(--ip-text-3);
}
.step-progress__item--done .step-progress__circle { background: var(--ip-ok); border-color: var(--ip-ok); color: #fff; }
.step-progress__item--active .step-progress__circle { background: var(--ip-orange); border-color: var(--ip-orange); color: #fff; box-shadow: 0 0 0 6px rgba(255,107,53,0.15); }
.step-progress__item--active { color: var(--ip-orange); }
.step-progress__item--done { color: var(--ip-ok); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.slot {
  padding: 11px;
  background: var(--ip-white);
  border: 1.5px solid var(--ip-line);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  cursor: pointer;
  transition: var(--ip-trans);
  font-family: inherit;
  color: var(--ip-text);
}
.slot:hover { border-color: var(--ip-orange); color: var(--ip-orange); }
.slot.selected { background: var(--ip-orange); border-color: var(--ip-orange); color: #fff; box-shadow: 0 6px 16px rgba(255,107,53,0.3); }
.slot:disabled, .slot.unavailable { opacity: 0.4; cursor: not-allowed; background: var(--ip-bg-alt); }

.day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}
.day-grid__head {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--ip-text-3);
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: 8px 0;
}
.day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ip-trans);
  font-size: 0.88rem;
  color: var(--ip-text);
}
.day-cell:hover:not(.day-cell--disabled):not(.day-cell--empty) { background: var(--ip-bg-alt); }
.day-cell--disabled { opacity: 0.35; cursor: not-allowed; }
.day-cell--empty { visibility: hidden; }
.day-cell.selected { background: var(--ip-orange); color: #fff; box-shadow: 0 6px 16px rgba(255,107,53,0.3); }
.day-cell--today { border: 2px solid var(--ip-ink); }

.booking-summary {
  background: var(--ip-ink);
  color: #fff;
  padding: 36px;
  border-radius: var(--ip-r-lg);
  position: sticky;
  top: 110px;
}
.booking-summary h3 { color: #fff; margin-bottom: 22px; font-size: 1.2rem; }
.booking-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
}
.booking-summary__row:last-of-type { border-bottom: none; }
.booking-summary__row span:first-child { color: rgba(255,255,255,0.6); }
.booking-summary__row span:last-child { font-weight: 600; color: #fff; }
.booking-summary__total {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.booking-summary__total-val {
  font-family: var(--ip-font-display);
  font-size: 1.8rem;
  color: var(--ip-orange-hi);
  font-weight: 700;
}

/* ========================================================
   CHECKOUT (Stripe mockup)
   ======================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1.3fr 1fr; } }

.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid var(--ip-line);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--ip-trans);
  background: var(--ip-white);
}
.payment-method:hover { border-color: var(--ip-orange); }
.payment-method.active { border-color: var(--ip-orange); background: rgba(255,107,53,0.04); }
.payment-method input { width: 20px; height: 20px; accent-color: var(--ip-orange); }
.payment-method__icon {
  width: 44px; height: 30px;
  background: var(--ip-ink);
  border-radius: 6px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-family: var(--ip-font-display);
  font-weight: 700;
}
.payment-method__body { flex: 1; }
.payment-method__title { font-weight: 600; font-size: 0.95rem; }
.payment-method__desc { font-size: 0.78rem; color: var(--ip-text-3); }

.card-input-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .card-input-row { grid-template-columns: 1fr; } }

.stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #635bff;
  color: #fff;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--ip-font-mono);
}

.order-summary {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  padding: 30px;
  position: sticky;
  top: 110px;
}
.order-summary h3 { font-size: 1.15rem; margin-bottom: 20px; }
.order-summary__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ip-line);
}
.order-summary__item img {
  width: 60px; height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--ip-bg-alt);
}
.order-summary__item-body { flex: 1; }
.order-summary__item-title { font-weight: 600; font-size: 0.88rem; margin-bottom: 2px; }
.order-summary__item-meta { font-size: 0.75rem; color: var(--ip-text-3); }
.order-summary__item-price { font-weight: 700; color: var(--ip-ink); font-family: var(--ip-font-display); }
.order-summary__totals { padding-top: 16px; }
.order-summary__totals > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.88rem;
}
.order-summary__totals > .order-summary__final {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--ip-line);
  font-family: var(--ip-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ip-ink);
}

/* ========================================================
   DASHBOARD
   ======================================================== */
.dash-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: calc(100vh - 300px); }
@media (max-width: 900px) { .dash-wrap { grid-template-columns: 1fr; } }

.dash-sidebar {
  background: var(--ip-ink);
  color: #fff;
  padding: 30px 20px;
}
.dash-user {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.dash-user__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ip-orange), var(--ip-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--ip-font-display);
  font-weight: 700;
  font-size: 1.3rem;
}
.dash-user__name { font-weight: 600; color: #fff; font-family: var(--ip-font-display); }
.dash-user__email { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

.dash-menu { display: flex; flex-direction: column; gap: 4px; }
.dash-menu a, .dash-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--ip-trans);
  font-family: inherit;
  width: 100%;
  text-align: left;
}
.dash-menu a:hover, .dash-menu button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.dash-menu a.active, .dash-menu button.active { background: var(--ip-orange); color: #fff; }
.dash-menu i { width: 20px; text-align: center; }

.dash-main { padding: 40px; background: var(--ip-bg); }
.dash-main h2 { font-size: 1.6rem; margin-bottom: 6px; }
.dash-main__sub { color: var(--ip-text-3); font-size: 0.9rem; margin-bottom: 30px; }

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.kpi-card {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: 14px;
  padding: 22px;
  position: relative;
}
.kpi-card__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ip-text-3); font-weight: 600; }
.kpi-card__value { font-family: var(--ip-font-display); font-size: 2rem; font-weight: 700; color: var(--ip-ink); margin: 8px 0 4px; letter-spacing: -0.02em; }
.kpi-card__trend { font-size: 0.78rem; font-weight: 600; }
.kpi-card__trend--up { color: var(--ip-ok); }
.kpi-card__trend--down { color: var(--ip-err); }
.kpi-card__icon { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; background: var(--ip-bg-alt); color: var(--ip-orange); border-radius: 10px; display: flex; align-items: center; justify-content: center; }

.panel {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  padding: 28px;
  margin-bottom: 22px;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.panel__title { font-size: 1.1rem; font-family: var(--ip-font-display); font-weight: 700; color: var(--ip-ink); }

.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  padding: 14px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ip-text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--ip-line);
}
.table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--ip-line);
  font-size: 0.9rem;
}
.table tr:last-child td { border-bottom: none; }
.status-chip {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-chip--ok { background: #d1fae5; color: #047857; }
.status-chip--warn { background: #fef3c7; color: #92400e; }
.status-chip--err { background: #fee2e2; color: #991b1b; }
.status-chip--info { background: #dbeafe; color: #1e40af; }

/* Email automation mockup */
.email-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .email-flow { grid-template-columns: repeat(3, 1fr); } }

.email-node {
  background: var(--ip-white);
  border: 1.5px solid var(--ip-line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}
.email-node--trigger { border-color: var(--ip-orange); background: linear-gradient(135deg, rgba(255,107,53,0.03), transparent); }
.email-node--action { border-color: var(--ip-teal); background: linear-gradient(135deg, rgba(20,184,166,0.03), transparent); }
.email-node__type {
  display: inline-flex;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.email-node--trigger .email-node__type { background: var(--ip-orange); color: #fff; }
.email-node--action .email-node__type { background: var(--ip-teal); color: #fff; }
.email-node h4 { font-size: 1rem; margin-bottom: 6px; font-family: var(--ip-font-display); color: var(--ip-ink); }
.email-node p { font-size: 0.82rem; color: var(--ip-text-2); line-height: 1.6; }
.email-node__meta { font-size: 0.72rem; color: var(--ip-text-3); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ip-line); }

/* ========================================================
   TEAM CARDS
   ======================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--ip-white);
  border-radius: var(--ip-r-lg);
  overflow: hidden;
  box-shadow: var(--ip-shadow-sm);
  transition: var(--ip-trans);
  text-align: center;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--ip-shadow-lg); }
.team-card__photo {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  background: var(--ip-bg-alt);
}
.team-card__body { padding: 22px; }
.team-card__name { font-size: 1.1rem; font-family: var(--ip-font-display); font-weight: 700; color: var(--ip-ink); }
.team-card__role { font-size: 0.82rem; color: var(--ip-orange); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-top: 4px; }
.team-card__bio { font-size: 0.85rem; color: var(--ip-text-2); margin-top: 10px; line-height: 1.6; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ip-orange), var(--ip-teal), var(--ip-orange));
}
.timeline__item { position: relative; padding-bottom: 36px; padding-left: 24px; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -35px; top: 6px;
  width: 12px; height: 12px;
  background: var(--ip-orange);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--ip-orange);
}
.timeline__year { font-family: var(--ip-font-display); font-weight: 700; font-size: 1.2rem; color: var(--ip-orange); margin-bottom: 4px; }
.timeline__title { font-size: 1.1rem; margin-bottom: 6px; }

/* Cards generiche */
.card {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  padding: 32px;
  transition: var(--ip-trans);
}
.card:hover { box-shadow: var(--ip-shadow-lg); border-color: var(--ip-line-2); }
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(255,107,53,0.04));
  color: var(--ip-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.card__title { font-size: 1.15rem; margin-bottom: 10px; }
.card__text { font-size: 0.92rem; line-height: 1.7; color: var(--ip-text-2); }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 600px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Certifications */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.cert-item {
  background: var(--ip-white);
  border: 1.5px solid var(--ip-line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  transition: var(--ip-trans);
}
.cert-item:hover { border-color: var(--ip-orange); box-shadow: var(--ip-shadow); }
.cert-item i { font-size: 2rem; color: var(--ip-orange); margin-bottom: 12px; }
.cert-item__code { font-family: var(--ip-font-mono); font-weight: 700; color: var(--ip-ink); margin-bottom: 4px; font-size: 0.95rem; }
.cert-item__desc { font-size: 0.78rem; color: var(--ip-text-3); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--ip-ink), var(--ip-ink-3));
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,107,53,0.2) 0%, transparent 70%);
  transform: translateX(-50%);
}
.cta-band__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.75); margin-bottom: 26px; font-size: 1.05rem; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.badge--orange { background: rgba(255,107,53,0.12); color: var(--ip-orange); }
.badge--teal { background: rgba(20,184,166,0.12); color: var(--ip-teal); }
.badge--dark { background: rgba(10,24,40,0.08); color: var(--ip-ink); }

/* Newsletter inline */
.news-inline {
  background: linear-gradient(135deg, var(--ip-ink), var(--ip-ink-3));
  border-radius: var(--ip-r-xl);
  padding: 60px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) { .news-inline { grid-template-columns: 1.2fr 1fr; padding: 80px; } }
.news-inline h2 { color: #fff; font-size: 2rem; margin-bottom: 10px; }
.news-inline p { color: rgba(255,255,255,0.75); }
.news-inline__form { display: flex; gap: 10px; background: rgba(255,255,255,0.08); padding: 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1); }
.news-inline__form input { flex: 1; background: transparent; border: none; padding: 14px 16px; color: #fff; font-family: inherit; font-size: 0.95rem; }
.news-inline__form input:focus { outline: none; }
.news-inline__form input::placeholder { color: rgba(255,255,255,0.4); }

/* Events */
.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  padding: 28px;
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  align-items: center;
  transition: var(--ip-trans);
}
.event-card:hover { border-color: var(--ip-orange); box-shadow: var(--ip-shadow); }
.event-card__date {
  text-align: center;
  min-width: 80px;
  padding: 16px;
  background: var(--ip-ink);
  color: #fff;
  border-radius: 14px;
  font-family: var(--ip-font-display);
}
.event-card__date strong { display: block; font-size: 1.6rem; line-height: 1; }
.event-card__date span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; margin-top: 4px; display: block; }
.event-card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.event-card__body p { font-size: 0.88rem; color: var(--ip-text-3); }
.event-card__meta { display: flex; gap: 18px; margin-top: 10px; font-size: 0.82rem; color: var(--ip-text-3); }
.event-card__meta span i { color: var(--ip-orange); margin-right: 4px; }
@media (max-width: 700px) { .event-card { grid-template-columns: 1fr; text-align: left; } }

/* Case studies */
.case-list { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 800px) { .case-list { grid-template-columns: repeat(2, 1fr); } }
.case-card {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  overflow: hidden;
  transition: var(--ip-trans);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--ip-shadow-lg); }
.case-card__img { aspect-ratio: 16 / 9; overflow: hidden; }
.case-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ip-ease); }
.case-card:hover .case-card__img img { transform: scale(1.06); }
.case-card__body { padding: 30px; }
.case-card__client { font-size: 0.73rem; color: var(--ip-orange); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 10px; }
.case-card__title { font-size: 1.25rem; margin-bottom: 10px; }
.case-card__text { font-size: 0.92rem; color: var(--ip-text-2); line-height: 1.7; }
.case-card__kpis { display: flex; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ip-line); }
.case-card__kpi strong { font-family: var(--ip-font-display); font-size: 1.3rem; color: var(--ip-ink); display: block; line-height: 1; }
.case-card__kpi span { font-size: 0.72rem; color: var(--ip-text-3); text-transform: uppercase; letter-spacing: 1px; }

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-post {
  background: var(--ip-white);
  border: 1px solid var(--ip-line);
  border-radius: var(--ip-r-lg);
  overflow: hidden;
  transition: var(--ip-trans);
  display: flex;
  flex-direction: column;
}
.blog-post:hover { transform: translateY(-6px); box-shadow: var(--ip-shadow-lg); border-color: var(--ip-orange); }
.blog-post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ip-bg-alt); }
.blog-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ip-ease); }
.blog-post:hover .blog-post__img img { transform: scale(1.07); }
.blog-post__body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-post__cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--ip-orange); font-weight: 700; margin-bottom: 10px; }
.blog-post__title { font-size: 1.1rem; margin-bottom: 10px; flex-grow: 1; }
.blog-post__title a { color: var(--ip-ink); transition: var(--ip-trans); }
.blog-post__title a:hover { color: var(--ip-orange); }
.blog-post__excerpt { font-size: 0.88rem; color: var(--ip-text-2); line-height: 1.65; margin-bottom: 14px; }
.blog-post__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--ip-line); font-size: 0.78rem; color: var(--ip-text-3); }

/* Article body */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body > p, .article-body > ul { font-size: 1.02rem; line-height: 1.85; margin-bottom: 20px; color: var(--ip-text); }
.article-body > ul { padding-left: 20px; list-style: disc; }
.article-body > h2 { font-size: 1.7rem; margin: 38px 0 14px; }
.article-body > h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.article-body blockquote {
  border-left: 4px solid var(--ip-orange);
  padding: 20px 30px;
  background: var(--ip-bg-alt);
  margin: 26px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ip-ink);
  border-radius: 0 12px 12px 0;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
  .hero { padding: 60px 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { aspect-ratio: 4 / 3; }
  .hero__kpis { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--feature, .bento__cell--wide { grid-column: span 2; grid-row: span 1; }
  .stats-band__grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .main-nav { display: none; position: fixed; top: 80px; left: 0; right: 0; background: var(--ip-white); border-top: 1px solid var(--ip-line); padding: 20px; }
  .main-nav--open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 16px; }
  .mobile-toggle { display: flex; }
  .hero__float-card--top, .hero__float-card--bot { left: auto; right: 10px; }
  .hero__float-card--top { top: 10px; }
  .hero__float-card--bot { bottom: 10px; }
  .top-bar { display: none; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--feature, .bento__cell--wide { grid-column: span 1; }
  .stats-band__grid { grid-template-columns: 1fr; }
}

/* Visible-only helper for small hints */
.muted { color: var(--ip-text-3); font-size: 0.85rem; }
.text-orange { color: var(--ip-orange); }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* ========================================================
   FIX — overrides v2
   ======================================================== */

/* Dark section + white card: ensure legible text inside card */
.section--dark .card {
  background: var(--ip-white);
  color: var(--ip-text);
}
.section--dark .card h1,
.section--dark .card h2,
.section--dark .card h3,
.section--dark .card h4,
.section--dark .card .card__title {
  color: var(--ip-ink);
}
.section--dark .card p,
.section--dark .card .card__text {
  color: var(--ip-text-2);
}
.section--dark .card .muted {
  color: var(--ip-text-3);
}
.section--dark .card .card__icon {
  color: var(--ip-orange);
}

/* Prenota — stabilimento picker: non usare flex di .payment-method quando combinato con .card */
.card.payment-method {
  display: block;
  padding: 24px;
  text-align: left;
}
.card.payment-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.card.payment-method .payment-method__icon,
.card.payment-method > i.fas:first-child {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--ip-orange);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.card.payment-method.active,
.card.payment-method.selected {
  border-color: var(--ip-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15);
}

/* Booking summary: forza leggibilità su sfondo scuro */
.booking-summary { color: #fff; }
.booking-summary * { color: inherit; }
.booking-summary strong { color: #fff; }
.booking-summary .muted,
.booking-summary span[style*="color"] { color: rgba(255, 255, 255, 0.7) !important; }

/* Responsive: immagini a ratio fisso per evitare foto orizzontali in contenitori verticali */
.card img,
.product-card img,
.blog-card img,
.team-card img {
  object-fit: cover;
  object-position: center;
}

/* Fix team-card photo: aspect-ratio era sul div, serve anche sull'img */
.team-card__photo {
  position: relative;
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center top;
}

/* Fix sector-card image: img dentro div positioned */
.sector-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Case card: assicura che img riempia il contenitore */
.case-card__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Product card immagini (sia __img che __media) */
.product-card__img,
.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card__img img,
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Blog card immagini (card, post, preview) */
.blog-card__img,
.blog-post__img,
.blog-preview__img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: block;
}
.blog-card__img img,
.blog-post__img img,
.blog-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}
.blog-post:hover .blog-post__img img { transform: scale(1.04); }

/* Supplier portal / landing page: piccolo layout */
.supplier-hero {
  background: linear-gradient(135deg, var(--ip-ink) 0%, var(--ip-ink-2) 100%);
  color: #fff;
  padding: 90px 0 70px;
}
.supplier-hero h1 { color: #fff; }
.supplier-hero p { color: rgba(255, 255, 255, 0.8); }

/* Modal semplice (shared per download / supplier / case-study) */
.ip-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 40, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: ip-modal-in 0.25s ease;
}
.ip-modal.is-open { display: flex; }
.ip-modal__dialog {
  background: #fff;
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.ip-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  color: var(--ip-text-3);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.ip-modal__close:hover { background: rgba(0, 0, 0, 0.06); }
.ip-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.12);
  color: var(--ip-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.ip-modal h3 {
  font-family: var(--ip-font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--ip-ink);
}
.ip-modal p {
  color: var(--ip-text-2);
  line-height: 1.6;
  margin-bottom: 18px;
}
.ip-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@keyframes ip-modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
