/* ------------------------------------------------------------------
   Laboratorio Odontotecnico F.lli Monterubbiano - Proposta grafica
   Clion S.p.A.
------------------------------------------------------------------ */

/* 01. Fonts (locali) */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* 02. Variabili */
:root {
  --primary-color: #0E384C;
  --secondary-color: #EFF8FF;
  --text-color: #527282;
  --accent-color: #1E84B5;
  --accent-dark: #176a92;
  --white-color: #FFFFFF;
  --divider-color: #FFFFFF1F;
  --dark-divider-color: #0E384C1A;
  --error-color: rgb(230, 87, 87);
  --default-font: "Poppins", sans-serif;
  --radius-lg: 40px;
  --radius-md: 30px;
  --radius-sm: 20px;
  --shadow: 0 4px 40px 0 rgba(0, 0, 0, .06);
  --header-h: 96px;
  --section-pad: 100px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* 03. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) - 10px); }
html, body { width: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--default-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6em;
  color: var(--text-color);
  background-color: var(--white-color);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
p { line-height: 1.8em; margin: 0 0 1.6em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2em; color: var(--primary-color); }
figure { margin: 0; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-color); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--primary-color); }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }

.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.align-center { align-items: center; }

.skip-link {
  position: absolute; left: 15px; top: -60px; z-index: 2000;
  background: var(--primary-color); color: #fff; padding: 10px 18px; border-radius: 99px;
}
.skip-link:focus { top: 15px; color: #fff; }

/* 04. Bottoni */
.btn-default {
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5em;
  color: var(--white-color);
  background: var(--accent-color);
  padding: 14px 50px 14px 20px;
  border: none;
  border-radius: 99px;
  transition: all .5s ease-in-out;
}
.btn-default:hover { color: var(--white-color); background-color: transparent; }
.btn-default::before {
  content: "";
  position: absolute; top: 50%; right: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white-color) url("../img/icons/arrow-blue.svg") no-repeat center / 10px auto;
  transform: translate(-10px, -50%);
  transition: all .4s ease-in-out;
}
.btn-default:hover::before { transform: translate(-10px, -50%) rotate(45deg); }
.btn-default::after {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 0; height: 100%;
  border-radius: 99px;
  background: var(--primary-color);
  transition: all .4s ease-in-out;
  z-index: -1;
}
.btn-default:hover::after { width: 100%; }
.btn-default.btn-highlighted:hover { color: var(--primary-color); }
.btn-default.btn-highlighted:hover::before { background-color: var(--primary-color); background-image: url("../img/icons/arrow-white.svg"); }
.btn-default.btn-highlighted::after { background-color: var(--white-color); }

/* 05. Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--accent-color);
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.loading-container, .loading { width: 100px; height: 100px; border-radius: 100%; position: relative; }
.loading {
  border: 1px solid transparent;
  border-color: transparent var(--white-color) transparent var(--white-color);
  animation: rotate-loading 1.5s linear infinite;
}
#loading-icon { position: absolute; top: 50%; left: 50%; max-width: 66px; transform: translate(-50%, -50%); }
.loading-initials { font-size: 26px; font-weight: 700; line-height: 1; letter-spacing: .06em; color: var(--white-color); }
@keyframes rotate-loading { to { transform: rotate(360deg); } }

/* 06. Section title */
.section-row { margin-bottom: 60px; }
.section-row .section-title { text-align: center; max-width: 820px; margin: 0 auto; }
.section-title { margin-bottom: 40px; }
.section-title .section-subtitle {
  display: inline-block; position: relative;
  font-size: 14px; font-weight: 500; line-height: 1.5em;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-color);
  padding-left: 20px; margin-bottom: 10px;
}
.section-title .section-subtitle::before {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  background: url("../img/icons/icon-sub-heading.svg") no-repeat left center / cover;
}
.section-title h1, .section-title .hero-h1 { font-size: 54px; font-weight: 700; }
.section-title h2 { font-size: 44px; font-weight: 700; }
.section-title h1 span:not(.word), .section-title h2 span:not(.word) { color: var(--accent-color); }
.section-title p { margin: 20px 0 0; }
.section-title p + p { margin-top: 14px; }
.split-title .word { display: inline-block; }

/* 07. Header */
.main-header { position: relative; z-index: 100; height: var(--header-h); }
.header-sticky {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--white-color);
  border-bottom: 1px solid var(--dark-divider-color);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.header-sticky.is-scrolled { box-shadow: 0 6px 30px rgba(14, 56, 76, .08); }
.header-sticky.is-hidden { transform: translateY(-100%); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 30px; height: var(--header-h); }
.navbar-brand { flex: 0 1 440px; min-width: 0; }
.navbar-brand img { width: 100%; max-width: 440px; }
.main-menu { display: flex; align-items: center; gap: 24px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block; position: relative;
  padding: 10px 12px;
  font-size: 15px; font-weight: 500;
  color: var(--primary-color);
}
.nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
  height: 2px; background: var(--accent-color);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--accent-color); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.navbar-toggle {
  display: none;
  width: 46px; height: 46px; padding: 0 12px;
  border: 0; border-radius: 50%;
  background: var(--accent-color);
  flex-direction: column; justify-content: center; gap: 5px;
}
.navbar-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s ease, opacity .35s ease; }
.navbar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 08. Hero slider */
.hero { position: relative; background: var(--primary-color); overflow: hidden; }
.hero-swiper { height: calc(100svh - var(--header-h)); min-height: 620px; max-height: 1000px; }
/* desktop: hero + cta-box = viewport - header (--cta-h misurata via JS) */
@media (min-width: 992px) {
  .hero-swiper { height: calc(100vh - var(--header-h) - var(--cta-h, 160px)); height: calc(100svh - var(--header-h) - var(--cta-h, 160px)); min-height: 400px; max-height: none; }
}
@media (min-width: 992px) and (max-height: 820px) {
  .hero .hero-content { max-width: 1000px; padding: 20px 50px 84px; }
  .hero .hero-content .section-title h1, .hero .hero-content .section-title .hero-h1 { font-size: 48px; }
  .hero .hero-content .section-title p { font-size: 16px; margin-top: 14px; }
  .hero .hero-content .section-title { margin-bottom: 26px; }
}
.hero-slide { position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--primary-color); opacity: .7;
}
.hero-slider-image { position: absolute; inset: 0; }
.hero-slider-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.hero-slide.swiper-slide-active .hero-slider-image img { transform: scale(1); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-content { max-width: 860px; margin: 0 auto; text-align: center; padding: 30px 50px 80px; }
.hero-content .section-title .section-subtitle,
.hero-content .section-title h1,
.hero-content .section-title .hero-h1,
.hero-content .section-title p,
.hero-content .section-title h1 span,
.hero-content .section-title .hero-h1 span { color: var(--white-color); }
.hero-content .section-title h1,
.hero-content .section-title .hero-h1 { font-size: 72px; line-height: 1.1em; }
.hero .hero-content .section-title p.hero-h1 { margin: 0; max-width: none; font-weight: 700; line-height: 1.1em; }
.hero-content .section-title h1 span:not(.word),
.hero-content .section-title .hero-h1 span:not(.word) { color: #7fc6ea; }
.hero-content .section-title .section-subtitle::before { filter: brightness(0) invert(1); }
.hero-content .section-title p { font-size: 18px; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-content-body { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* frecce laterali */
.hero-arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 60px; height: 60px; margin-top: -30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.hero-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-arrow:hover { background: var(--accent-color); border-color: var(--accent-color); }
.hero-prev { left: 30px; }
.hero-next { right: 30px; }
.hero-prev:hover { transform: translateX(-3px); }
.hero-next:hover { transform: translateX(3px); }

/* bullet */
.hero-swiper .hero-pagination { left: auto; right: 30px; bottom: 30px; width: auto; text-align: right; z-index: 5; }
.hero-pagination .swiper-pagination-bullet {
  width: 15px; height: 15px; margin: 0 5px !important;
  background: var(--white-color); opacity: 1;
  transition: all .3s ease-in-out;
}
.hero-pagination .swiper-pagination-bullet-active { background: var(--accent-color); width: 36px; border-radius: 99px; }

/* icona SCORRI */
.scroll-down {
  position: absolute; left: 50%; bottom: 26px; z-index: 6;
  transform: translateX(-50%);
  display: flex; color: #fff;
}
.scroll-down:hover { color: #7fc6ea; }
.scroll-down .mouse {
  width: 26px; height: 42px;
  border: 2px solid currentColor; border-radius: 16px;
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-down .wheel { width: 4px; height: 8px; border-radius: 4px; background: currentColor; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; transform: translateY(0); } }

/* 09. CTA box */
.cta-box { background: var(--primary-color); padding: 50px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; }
.cta-box-item { display: flex; align-items: center; gap: 20px; padding-right: 30px; border-right: 1px solid var(--divider-color); }
.cta-box-item:nth-child(2) { border: 0; padding-right: 0; }
.cta-box-item .icon-box img, .cta-box-item .icon-box svg { width: 40px; height: 40px; }
.cta-box-content .cta-title { font-size: 20px; font-weight: 600; line-height: 1.2em; color: var(--white-color); margin: 0 0 8px; }
.cta-box-content p { color: var(--white-color); margin: 0; }
.cta-box-content a { color: var(--white-color); }
.cta-box-content a:hover { color: #7fc6ea; }
.cta-box-btn { text-align: right; }

/* 10. Chi siamo */
.about-us { padding: var(--section-pad) 0; }
.about-image {
  position: relative;
  margin-right: 30px; padding-bottom: 180px;
  background: url("../img/icons/about-bg-image.svg") no-repeat center / auto;
}
.about-img-1 { width: 78%; }
.about-img-1 img { width: 100%; aspect-ratio: 1 / .96; object-fit: cover; border-radius: var(--radius-lg); }
.about-img-2 { position: absolute; right: 0; bottom: 0; width: 62%; }
.about-img-2 img { width: 100%; aspect-ratio: 1 / .72; object-fit: cover; border: 7px solid var(--white-color); border-radius: var(--radius-lg); }
.about-experience { position: absolute; top: 6%; right: 2%; width: 150px; height: 150px; }
.exp-circle { width: 100%; height: 100%; animation: rotate 30s linear infinite; }
.exp-circle text { font-size: 11.2px; font-weight: 600; letter-spacing: .12em; fill: #fff; }
.exp-center {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff;
}
.exp-center svg { width: 34px; height: 34px; }
@keyframes rotate { to { transform: rotate(360deg); } }
.about-content .section-title { margin-bottom: 30px; }
.about-us-body { margin-bottom: 40px; }
.about-us-body ul { display: flex; flex-wrap: wrap; gap: 20px; }
.about-us-body li {
  position: relative; width: calc(50% - 10px);
  padding-left: 30px;
  font-weight: 600; color: var(--primary-color);
}
.about-us-body li::before {
  content: ""; position: absolute; top: 3px; left: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100%;
}

/* 11. Servizi */
.our-services {
  position: relative;
  padding: var(--section-pad) 0 60px;
  background-image: url("../img/icons/our-service-bg.svg"), linear-gradient(180deg, var(--secondary-color) 65%, var(--white-color) 35%);
  background-repeat: no-repeat;
  background-position: top center;
}
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-item {
  position: relative; overflow: hidden; z-index: 1;
  height: 100%;
  padding: 30px;
  background: var(--white-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.service-item::before {
  content: ""; position: absolute; top: 100%; left: 0;
  width: 100%; height: 100%;
  background: var(--primary-color);
  transition: all .4s ease-in-out;
  z-index: 0;
}
.service-item:hover::before { top: 0; }
.service-item .icon-box { position: relative; z-index: 1; margin-bottom: 20px; }
.service-item .icon-box img { width: 48px; height: 48px; transition: all .5s ease-in-out; }
.service-item:hover .icon-box img { filter: brightness(0) invert(1); }
.service-body { position: relative; z-index: 1; }
.service-body h3 { font-size: 20px; font-weight: 600; margin-bottom: 16px; transition: color .5s ease-in-out; }
.service-body p { margin: 0; transition: color .5s ease-in-out; }
.service-item:hover .service-body h3, .service-item:hover .service-body p { color: var(--white-color); }
.services-box-footer { max-width: 640px; margin: 50px auto 0; text-align: center; }
.services-box-footer p { margin: 0; }

/* 12. Attrezzature */
.equipment { padding: 60px 0 var(--section-pad); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 50px; }
.section-head .section-title { margin: 0; max-width: 720px; }
.slider-nav { display: flex; gap: 12px; flex-shrink: 0; }
.nav-btn {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--dark-divider-color); border-radius: 50%;
  background: var(--secondary-color); color: var(--primary-color);
  transition: all .35s ease;
}
.nav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.equipment-swiper { padding-bottom: 60px !important; }
.equipment-swiper .swiper-slide { height: auto; }
.equipment-item {
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--white-color);
  border: 1px solid var(--dark-divider-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .4s ease, transform .4s var(--ease);
}
.equipment-item:hover { box-shadow: 0 20px 50px rgba(14, 56, 76, .12); transform: translateY(-6px); }
.equipment-img { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.equipment-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.equipment-img.is-product { background: #fff; padding: 22px; }
.equipment-img.is-product img { object-fit: contain; }
.equipment-item:hover .equipment-img img { transform: scale(1.05); }
.equipment-body { padding: 22px 26px 26px; border-top: 1px solid var(--dark-divider-color); }
.equipment-body .tag {
  display: inline-block; margin-bottom: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-color);
}
.equipment-body h3 { font-size: 20px; font-weight: 600; }
.equipment-pagination { bottom: 0 !important; }
.equipment-pagination .swiper-pagination-bullet,
.work-pagination .swiper-pagination-bullet { width: 12px; height: 12px; background: var(--primary-color); opacity: .2; transition: all .3s ease; }
.equipment-pagination .swiper-pagination-bullet-active { opacity: 1; background: var(--accent-color); width: 30px; border-radius: 99px; }

/* 13. Registro Ministero (banda discreta) */
.registry { padding: 0 0 var(--section-pad); }
.registry-box {
  display: flex; align-items: center; gap: 28px;
  padding: 26px 32px;
  background: var(--secondary-color);
  border: 1px solid var(--dark-divider-color);
  border-radius: var(--radius-md);
}
.registry-badge {
  flex: 0 0 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--white-color);
  box-shadow: var(--shadow);
}
.registry-badge svg { width: 30px; height: 30px; }
.registry-content { flex: 1; min-width: 0; }
.registry-content h2 { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.registry-content h2 span { color: var(--accent-color); }
.registry-content p { margin: 0; font-size: 14px; line-height: 1.6em; }
.registry-side { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.registry-code { display: flex; align-items: center; gap: 10px; }
.registry-code span { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.registry-code strong {
  padding: 6px 16px; border-radius: 99px;
  background: var(--white-color); border: 1px solid var(--dark-divider-color);
  color: var(--primary-color); font-size: 16px; letter-spacing: .06em;
}
.registry-link { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* 14. Implantologia */
.implant { padding: var(--section-pad) 0; background: var(--secondary-color) url("../img/icons/hero-bg.svg") no-repeat center / auto; }
.implant-steps li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--dark-divider-color);
}
.implant-steps li:first-child { padding-top: 0; }
.implant-steps li:last-child { border: 0; padding-bottom: 0; }
.implant-steps span {
  flex: 0 0 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent-color); color: #fff;
  font-weight: 600;
}
.implant-steps h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.implant-steps p { margin: 0; }
.implant-images { position: relative; padding-bottom: 150px; }
.implant-images figure { position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: zoom-in; }
.implant-images img { width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.implant-images figure:hover img { transform: scale(1.05); }
.implant-img-main img { aspect-ratio: 1400 / 540; background: #000; }
.implant-img-small { position: absolute !important; right: 0; bottom: 0; width: 55%; border: 7px solid var(--secondary-color); }
.implant-img-small img { aspect-ratio: 1.6 / 1; }
.implant-images figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 16px; border-radius: 99px;
  background: rgba(255, 255, 255, .92); color: var(--primary-color);
  font-size: 13px; font-weight: 600;
}

/* 15. Lavori */
.works { padding: var(--section-pad) 0; }
.works-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.work-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--primary-color);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  isolation: isolate;
}
.work-swiper { position: absolute !important; inset: 0; }
.work-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 5s linear; }
.work-swiper .swiper-slide-active img { transform: scale(1.12); }
.work-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 56, 76, 0) 40%, rgba(14, 56, 76, .92) 100%);
  transition: opacity .4s ease;
}
.work-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.work-body h3 { color: #fff; font-size: 20px; font-weight: 600; }
.work-count { color: rgba(255, 255, 255, .8); font-size: 13px; white-space: nowrap; }
.work-open {
  position: absolute; inset: 0; z-index: 3;
  border: 0; background: transparent; cursor: zoom-in;
}
.work-open::before {
  content: ""; position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center / 22px;
  transform: scale(.6); opacity: 0;
  transition: all .35s var(--ease);
}
.work-card:hover .work-open::before, .work-open:focus-visible::before { transform: scale(1); opacity: 1; }
.work-card .work-progress {
  position: absolute; left: 22px; right: 22px; bottom: 12px; z-index: 2; height: 2px;
  background: rgba(255, 255, 255, .2); border-radius: 2px; overflow: hidden;
}
.work-card .work-progress i { display: block; height: 100%; width: 0; background: #fff; }
.work-card.is-paused .work-progress i { background: #7fc6ea; }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.video-frame { overflow: hidden; border-radius: var(--radius-sm); background: #000; aspect-ratio: 16 / 10; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000;  }

/* Nasconde lo slider del volume */
.video-frame video::-webkit-media-controls-volume-slider {
  display: none !important;
}

/* Nasconde il pulsante per attivare/disattivare l'audio */
.video-frame video::-webkit-media-controls-mute-button {
  display: none !important;
}

/* Rimuove l'eventuale spazio vuoto lasciato dai controlli del volume */
.video-frame video::-webkit-media-controls-volume-control-container {
  display: none !important;
}

.video-item figcaption { padding: 14px 4px 0; display: flex; flex-direction: column; }
.video-item figcaption strong { color: var(--primary-color); font-weight: 600; }
.video-item figcaption small { font-size: 14px; }

/* 16. Citazione */
.quote-band { position: relative; overflow: hidden; padding: 110px 0; background: var(--primary-color); text-align: center; }
.quote-bg {
  position: absolute; left: 0; right: 0; top: -20%; height: 140%;
  background: url("../img/chi-siamo/lavori-banner.webp") no-repeat center / cover;
  opacity: .18;
}
.quote-band blockquote { position: relative; z-index: 1; margin: 0 auto; max-width: 900px; }
.quote-icon { width: 54px; height: 40px; margin: 0 auto 24px; color: var(--accent-color); }
.quote-band p { color: #fff; font-size: 38px; font-weight: 600; line-height: 1.3em; margin-bottom: 20px; }
.quote-band cite { color: #9bd5f2; font-style: normal; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; font-size: 14px; }
.quote-band cite::before { content: "— "; }

/* 17. Contatti */
.contact-now { padding: var(--section-pad) 0; }
.contact-google-map .google-map-iframe, .contact-google-map iframe { width: 100%; height: 100%; min-height: 600px; border: 0; border-radius: var(--radius-md); }
.contact-google-map .google-map-iframe { background: var(--secondary-color); }
.contact-google-map iframe { filter: grayscale(1); transition: filter .3s ease-in-out; }
.contact-google-map iframe:hover { filter: grayscale(0); }
.contact-now-content .section-title { margin-bottom: 30px; }
.contact-now-info { margin-bottom: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.contact-info-list { position: relative; padding-left: 40px; }
.contact-info-list .icon-box { position: absolute; top: 0; left: 0; }
.contact-info-full { grid-column: 1 / -1; }
.contact-info-list .icon-box img, .contact-info-list .icon-box svg { width: 28px; height: 28px; }
.contact-info-content p { margin: 0; color: var(--primary-color); font-weight: 500; line-height: 1.6em; word-break: break-word; }

.contact-form { background: var(--secondary-color); border-radius: var(--radius-md); padding: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.form-grid .form-group:first-child { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group input:not([type="checkbox"]), .form-group textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--primary-color);
  background: #fff; border: 1px solid var(--dark-divider-color); border-radius: 14px;
  padding: 13px 16px; transition: border-color .3s ease, box-shadow .3s ease;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(30, 132, 181, .15); }
.form-group.is-valid input, .form-group.is-valid textarea { border-color: #2e9e6a; }
.form-group.is-invalid input, .form-group.is-invalid textarea { border-color: var(--error-color); }
.form-error { min-height: 1.2em; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--error-color); }
/* etichette dentro i campi (floating label) */
.form-group.float { position: relative; }
.form-group.float input, .form-group.float textarea { padding: 22px 16px 8px; }
.form-group.float label {
  position: absolute; left: 17px; top: 16px; margin: 0;
  font-size: 15px; font-weight: 400; color: var(--text-color);
  pointer-events: none; transform-origin: left top;
  transition: transform .25s var(--ease), color .25s ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 34px);
}
.form-group.float input:focus + label, .form-group.float input:not(:placeholder-shown) + label,
.form-group.float textarea:focus + label, .form-group.float textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.78); color: var(--accent-color); font-weight: 500;
}
.form-group.is-invalid.float label { color: var(--error-color); }
/* checkbox privacy / marketing */
.form-check .check-label { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-size: 13px; font-weight: 400; line-height: 1.6em; color: var(--text-color); cursor: pointer; }
.form-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent-color); cursor: pointer; }
.form-check .privacy { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-check .form-error { margin: 2px 0 0 32px; }
.form-grid .form-check + .form-check { margin-top: -8px; }
.form-success { margin: 16px 0 0; font-weight: 500; color: #2e9e6a; }

/* 18. Footer */
.main-footer { padding: 90px 0 0; background: var(--primary-color) url("../img/icons/hero-bg.svg") no-repeat center / auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-logo { margin-bottom: 26px; }
.footer-logo img { width: 100%; max-width: 300px; }
.about-footer p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 420px; }
.footer-links h3 { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; color: rgba(255, 255, 255, .85); }
.footer-links a { color: #fff; }
.footer-links a:hover { color: #7fc6ea; }
.footer-copyright { border-top: 1px solid var(--divider-color); padding: 28px 0; margin-top: 60px; text-align: center; }
.footer-copyright p { color: rgba(255, 255, 255, .85); margin: 0 0 6px; font-size: 14px; }
.footer-copyright p:last-child { margin: 0; }
.footer-copyright .legal-name { margin-bottom: 4px; }
.footer-copyright .legal-data { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; margin-bottom: 12px; font-size: 13px; line-height: 1.7em; }
.footer-copyright .legal-data span + span::before { content: "·"; margin: 0 8px; color: rgba(255, 255, 255, .45); }
@media (max-width: 767px) {
  .footer-copyright .legal-data { flex-direction: column; align-items: center; }
  .footer-copyright .legal-data span + span::before { display: none; }
  .footer-copyright .legal-data a { word-break: break-all; }
}
.footer-copyright a { color: #fff; }
.footer-copyright a:hover { color: #7fc6ea; }

/* Credits Clion */
.credits_link { color: #38B5E6 !important; font-weight: 700; font-family: sans-serif; }
.credits_link:hover { color: #fff !important; }
.credits_link:before {
  content: ""; vertical-align: middle;
  width: 16px; height: 16px; display: inline-block;
  margin-right: 5px; margin-left: 5px;
  background-image: url(https://www.clion.it/favicon-96x96.png);
  background-repeat: no-repeat; -webkit-background-size: contain; background-size: contain; background-position: center center;
  transition: all 450ms ease;
}
.credits_link:hover:before { transform: rotateZ(360deg) rotateY(360deg); }

/* Pagina 404 */
.error-404 {
  position: relative; overflow: hidden;
  padding: 110px 0 120px;
  background: var(--secondary-color) url("../img/icons/hero-bg.svg") no-repeat center / auto;
  text-align: center;
}
.error-404-box { position: relative; max-width: 760px; margin: 0 auto; }
.error-404-code {
  margin: 0 0 6px;
  font-size: 180px; font-weight: 700; line-height: 1; letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-color);
  background: linear-gradient(180deg, rgba(30, 132, 181, .18) 0%, rgba(30, 132, 181, 0) 90%);
  -webkit-background-clip: text; background-clip: text;
}
.error-404 .section-title { margin-bottom: 34px; }
.error-404 .section-title h1 { font-size: 44px; }
.error-404 .section-title p { max-width: 560px; margin-left: auto; margin-right: auto; }
.error-404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }
.error-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.error-404-links a {
  display: inline-block; padding: 8px 18px;
  border: 1px solid var(--dark-divider-color); border-radius: 99px;
  background: var(--white-color); color: var(--primary-color);
  font-size: 14px; font-weight: 500;
  transition: all .3s ease;
}
.error-404-links a:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
@media (max-width: 767px) {
  .error-404 { padding: 70px 0 80px; }
  .error-404-code { font-size: 120px; }
  .error-404 .section-title h1 { font-size: 30px; }
}

/* Back to top */
.back-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: #fff;
  box-shadow: 0 10px 30px rgba(14, 56, 76, .25);
  opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: all .4s var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--primary-color); color: #fff; }
.back-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* 19. Lightbox (autoplay, pausa hover, stop al click) */
.lightbox { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8, 30, 41, .94); }
.lb-stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 70px 90px; }
.lb-figure { position: relative; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100svh - 170px); width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transition: opacity .35s ease, transform .35s ease; }
.lb-img.is-changing { opacity: 0; transform: scale(.98); }
.lb-caption { margin-top: 14px; color: #fff; font-weight: 500; text-align: center; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff;
  transition: background .3s ease;
}
.lb-btn:hover { background: var(--accent-color); border-color: var(--accent-color); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 22px; top: 50%; margin-top: -27px; }
.lb-next { right: 22px; top: 50%; margin-top: -27px; }
.lb-close { right: 22px; top: 18px; }
.lb-bar { position: absolute; left: 24px; top: 26px; display: flex; gap: 16px; align-items: center; color: #fff; font-size: 14px; font-weight: 500; }
.lb-bar .lb-toggle { position: relative; width: 46px; height: 46px; }
.lb-toggle .ic-play { display: none; fill: currentColor; stroke-width: 1.6; }
.lb-toggle.is-paused .ic-pause { display: none; }
.lb-toggle.is-paused .ic-play { display: block; }
.lb-toggle[hidden] { display: none; }
.lb-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .12); }
.lb-progress i { display: block; height: 100%; width: 0; background: var(--accent-color); }

/* 20. Animazioni utility (stato iniziale gestito via JS) */
.image-anime { position: relative; overflow: hidden; }
.image-anime::after {
  content: ""; position: absolute; top: 0; left: -75%; z-index: 2;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .3) 100%);
  transform: skewX(-25deg); pointer-events: none;
}
.image-anime:hover::after { animation: shine 1s; }
@keyframes shine { 100% { left: 125%; } }

/* 21. Responsive */
@media (max-width: 1399px) {
  .hero-content .section-title h1, .hero-content .section-title .hero-h1 { font-size: 62px; }
  .nav-link { padding: 10px 9px; font-size: 14px; }
  .navbar-brand { flex-basis: 370px; }
  .navbar-brand img { max-width: 370px; }
}

@media (max-width: 1199px) {
  :root { --header-h: 84px; }
  .navbar-toggle { display: flex; }
  .main-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 10px 15px 24px;
    background: var(--primary-color);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .45s var(--ease), visibility .45s;
  }
  .main-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { color: #fff; font-size: 16px; padding: 14px 6px; border-bottom: 1px solid var(--divider-color); }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link.is-active { color: #7fc6ea; }
  .header-btn { padding-top: 20px; }
  .header-btn .btn-default { width: 100%; text-align: left; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(6, 1fr); }
  .works-grid .work-card { grid-column: span 2; }
  .works-grid .work-card:nth-child(n+4) { grid-column: span 3; aspect-ratio: 4 / 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-footer { grid-column: 1 / -1; }
  .section-title h2 { font-size: 40px; }
  .contact-now-info { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  :root { --section-pad: 70px; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { padding: 30px 60px 120px; }
  .hero-content .section-title h1, .hero-content .section-title .hero-h1 { font-size: 48px; }
  .hero-arrow { width: 50px; height: 50px; margin-top: -25px; }
  .hero-prev { left: 15px; }
  .hero-next { right: 15px; }
  .section-title h2 { font-size: 36px; }
  .section-row { margin-bottom: 40px; }
  .cta-grid { grid-template-columns: 1fr 1fr; }
  .cta-box-btn { grid-column: 1 / -1; text-align: center; }
  .about-image { max-width: 640px; margin: 0 auto; width: 100%; }
  .about-content, .implant-content { order: 0; }
  .implant-images { max-width: 680px; margin: 0 auto; width: 100%; }
  .implant-img-small { right: 0; }
  .contact-google-map { order: 2; }
  .contact-google-map .google-map-iframe, .contact-google-map iframe { min-height: 420px; }
  .equipment-body { padding: 18px 20px 22px; }
  .equipment-body h3 { font-size: 18px; }
  .videos { grid-template-columns: 1fr 1fr; }
  .videos .video-item:last-child { grid-column: 1 / -1; }
  .quote-band p { font-size: 30px; }
  .registry-box { flex-wrap: wrap; }
  .registry-content { flex-basis: calc(100% - 88px); }
  .registry-side { flex-basis: 100%; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-left: 88px; }
}

@media (max-width: 767px) {
  :root { --header-h: 74px; --section-pad: 60px; --radius-lg: 26px; --radius-md: 22px; }
  body { font-size: 15px; }
  .navbar { gap: 16px; }
  .navbar-brand img { max-width: 300px; }
  .hero-swiper { min-height: 560px; height: calc(100svh - var(--header-h)); }
  .hero-content { padding: 20px 10px 130px; }
  .hero-content .section-title h1, .hero-content .section-title .hero-h1 { font-size: 34px; }
  .hero-content .section-title p { font-size: 15px; }
  .hero-content-body .btn-default { font-size: 13px; }
  .hero-arrow { top: auto; bottom: 106px; margin: 0; width: 44px; height: 44px; }
  .hero-arrow svg { width: 18px; height: 18px; }
  .hero-swiper .hero-pagination { right: 16px; bottom: 34px; }
  .hero-pagination .swiper-pagination-bullet { width: 11px; height: 11px; }
  .hero-pagination .swiper-pagination-bullet-active { width: 26px; }
  .section-title h2 { font-size: 28px; }
  .section-title .section-subtitle { font-size: 12px; }
  .cta-box { padding: 36px 0; }
  .cta-grid { grid-template-columns: 1fr; gap: 22px; }
  .cta-box-item { border-right: 0; padding-right: 0; padding-bottom: 22px; border-bottom: 1px solid var(--divider-color); }
  .cta-box-item:nth-child(2) { border-bottom: 1px solid var(--divider-color); padding-bottom: 22px; }
  .cta-box-content .cta-title { font-size: 18px; }
  .cta-box-btn { text-align: left; }
  .about-image { padding-bottom: 120px; margin-right: 0; }
  .about-experience { width: 110px; height: 110px; top: 2%; right: 14px; }
  .exp-center { width: 48px; height: 48px; }
  .exp-center svg { width: 26px; height: 26px; }
  .about-img-2 img { border-width: 5px; }
  .about-us-body li { width: 100%; }
  .services-grid { grid-template-columns: 1fr; gap: 20px; }
  .section-head { gap: 16px; margin-bottom: 30px; }
  .slider-nav { gap: 8px; }
  .nav-btn { width: 44px; height: 44px; }
  .nav-btn svg { width: 18px; height: 18px; }
  .equipment-swiper { padding-bottom: 46px !important; }
  .equipment-body { padding: 16px 18px 18px; }
  .equipment-body .tag { font-size: 11px; letter-spacing: .1em; margin-bottom: 4px; }
  .equipment-body h3 { font-size: 17px; }
  .equipment-img.is-product { padding: 16px; }
  .implant-images { padding-bottom: 80px; }
  .implant-img-small { width: 62%; border-width: 5px; }
  .implant-images figcaption { font-size: 11px; left: 10px; bottom: 10px; padding: 5px 12px; }
  .implant-steps h3 { font-size: 18px; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .works-grid .work-card, .works-grid .work-card:nth-child(n+4) { grid-column: auto; aspect-ratio: 3 / 4; }
  .works-grid .work-card:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .work-body { padding: 14px; }
  .work-body h3 { font-size: 16px; }
  .work-count { display: none; }
  .work-open::before { opacity: 1; transform: scale(.8); top: 10px; right: 10px; }
  .work-card .work-progress { left: 14px; right: 14px; bottom: 8px; }
  .videos { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .quote-band { padding: 80px 0; }
  .quote-band p { font-size: 23px; }
  .registry-box { padding: 22px 20px; gap: 16px; align-items: flex-start; }
  .registry-badge { flex-basis: 48px; height: 48px; }
  .registry-badge svg { width: 24px; height: 24px; }
  .registry-content { flex-basis: calc(100% - 64px); }
  .registry-content h2 { font-size: 18px; }
  .registry-side { padding-left: 0; gap: 10px 16px; }
  .registry-code strong { font-size: 15px; }
  .contact-form { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-google-map .google-map-iframe, .contact-google-map iframe { min-height: 320px; }
  .main-footer { padding-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-logo img { max-width: 250px; }
  .footer-copyright { margin-top: 40px; }
  .lb-stage { padding: 70px 12px 80px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; margin: 0; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .back-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
}

@media (max-width: 380px) {
  .hero-content .section-title h1, .hero-content .section-title .hero-h1 { font-size: 29px; }
  .hero-content-body { gap: 10px; }
  .section-title h2 { font-size: 25px; }
  .works-grid { grid-template-columns: 1fr; }
  .works-grid .work-card, .works-grid .work-card:last-child { aspect-ratio: 4 / 3; }
}

/* Landscape mobile: hero compatta */
@media (max-height: 560px) and (orientation: landscape) {
  .hero-swiper { min-height: 480px; height: auto; }
  .hero-slide { min-height: 480px; }
  .hero-content { padding: 30px 70px 110px; }
  .hero-content .section-title h1, .hero-content .section-title .hero-h1 { font-size: 30px; }
  .hero-content .section-title p { display: none; }
  .hero-arrow { top: 50%; bottom: auto; margin-top: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
