:root {
  --primary: #53A6B6;
  --primary-dk: #3A8A99;
  --primary-lt: #A8D5DE;
  --accent: #1C4E58;
  --light-bg: #F2F8FA;
  --dark-bg: #0E2D34;
  --text: #1A1A2E;
  --muted: #5A7A82;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

.navbar {
  background: var(--dark-bg);
  padding: 1rem 0;
}
.navbar-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,.2));
}
.navbar-toggler-icon { filter: invert(1); }
.nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 .45rem;
  transition: color .3s;
}
.nav-link:hover,
.nav-link.active { color: var(--primary-lt) !important; }
.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 2px;
  padding: .45rem 1.2rem;
}
.btn-nav:hover { background: var(--primary-dk); }

.page-hero {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(14,45,52,.92), rgba(83,166,182,.56)),
    url('https://images.unsplash.com/photo-1582719471384-894fbb16e074?w=1600&auto=format&fit=crop&q=80') center/cover;
  color: var(--white);
  padding: 6rem 0 4rem;
}
.page-hero.hero-azienda {
  background: linear-gradient(120deg, rgba(14,45,52,.92), rgba(83,166,182,.50)),
    url('../img/farmaci-trading-farmaceutico-trc-pharma.webp') center/cover;
}
.page-hero.hero-servizi {
  background: linear-gradient(120deg, rgba(14,45,52,.90), rgba(83,166,182,.52)),
    url('https://images.unsplash.com/photo-1587854692152-cbe660dbde88?w=1600&auto=format&fit=crop&q=80') center/cover;
}
.page-hero.hero-perche {
  background: linear-gradient(120deg, rgba(14,45,52,.92), rgba(83,166,182,.48)),
    url('../img/approvvigionamento-farmaci-trc-pharma.webp') center/cover;
}
.page-hero.hero-contatti {
  background: linear-gradient(120deg, rgba(14,45,52,.92), rgba(83,166,182,.50)),
    url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1600&auto=format&fit=crop&q=80') center/cover;
}
.page-hero .eyebrow,
.section-eyebrow {
  display: block;
  color: var(--primary-lt);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-eyebrow { color: var(--primary); }
.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.06;
  max-width: 850px;
}
.page-hero p {
  max-width: 650px;
  color: rgba(255,255,255,.82);
  line-height: 1.8;
  font-weight: 300;
  margin-top: 1.3rem;
}

section { padding: 6rem 0; }
.section-title {
  color: var(--accent);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1.4rem;
}
.section-body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  font-weight: 300;
}
.divider-line {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin-bottom: 2rem;
}
.img-block img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(83,166,182,.18);
}
.soft-section { background: var(--light-bg); }
.video-parallax {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.video-parallax .video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.video-parallax .video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}
.video-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(14,45,52,.88), rgba(83,166,182,.58));
}
.video-parallax .container {
  position: relative;
  z-index: 2;
}
.video-parallax .section-eyebrow,
.video-parallax .section-title,
.video-parallax .section-body {
  color: var(--white);
}
.video-parallax .section-body { color: rgba(255,255,255,.84); }
.feature-card {
  height: 100%;
  padding: 2.2rem;
  border-radius: 4px;
  background: var(--white);
  border-top: 4px solid var(--primary);
  box-shadow: 0 16px 45px rgba(14,45,52,.08);
}
.feature-card i {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.feature-card h3 {
  color: var(--accent);
  font-size: 1.45rem;
  margin-bottom: .8rem;
}
.feature-card p,
.feature-card li {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}
.bridge-list {
  list-style: none;
  display: grid;
  gap: .9rem;
  padding: 0;
  margin: 1.5rem 0 0;
}
.bridge-list li {
  background: var(--white);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.2rem;
  color: var(--accent);
}
.btn-primary-custom {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 2px;
  padding: .85rem 2.2rem;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, transform .2s;
  display: inline-block;
}
.btn-primary-custom:hover {
  background: var(--primary-dk);
  color: var(--white);
  transform: translateY(-2px);
}

footer {
  background: var(--dark-bg);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,.65);
}
.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .6rem;
}
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.5); margin-bottom: 1.5rem; }
.footer-link { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; display: block; margin-bottom: .4rem; transition: color .3s; }
.footer-link:hover { color: var(--primary-lt); }
.footer-title { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--primary-lt); margin-bottom: 1.2rem; }
.footer-divider { border-color: rgba(255,255,255,.1); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-size: .8rem; color: rgba(255,255,255,.35); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  section { padding: 4.5rem 0; }
  .img-block img { height: 300px; margin-top: 2rem; }
  .page-hero { min-height: 42vh; }
}
