/* =========================================================
   Marche Servizi (Opera Srl) — Landing page
   ========================================================= */

:root {
  --dark: #2c2c2c;
  --dark-soft: #3a3a3a;
  --accent: #f39c12;
  --accent-dark: #d6890a;
  --white: #ffffff;
  --offwhite: #f7f6f4;
  --border: #e6e3df;
  --text: #2c2c2c;
  --text-muted: #6c6c6c;
  --text-on-dark-muted: #c9c9c9;

  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(44, 44, 44, 0.08);
  --shadow-lg: 0 20px 50px rgba(44, 44, 44, 0.16);
  --container: 1180px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.25;
  color: var(--dark);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

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

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(243, 156, 18, .3);
}
.btn-accent:hover { background: var(--accent-dark); }

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: #1c1c1c; }

.btn-outline-light {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

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

.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header wrap (topbar + main nav, stuck together) ---------- */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: box-shadow .3s ease;
}

.header-wrap.is-scrolled {
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

/* Sticky mode: strip the header down to just the 5 nav links */
.header-wrap.is-scrolled .brand,
.header-wrap.is-scrolled .call-cta {
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
}

.header-wrap.is-scrolled .topbar {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}

@media (min-width: 1500px) {
  .header-wrap.is-scrolled .site-header .container { justify-content: center; }
  .header-wrap.is-scrolled .main-nav { margin-left: 0; margin-right: 0; }
}

/* Logo: overlays topbar + main nav, flush with the top-left corner of the screen */
.brand {
  position: absolute;
  top: 0;
  left: 0;
  height: 139px;
  z-index: 1002;
  line-height: 0; padding: 15px 30px;background: var(--dark);
  transition: opacity .3s ease, transform .3s ease;
}

.brand img { height: 100%; width: auto; display: block; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
  max-height: 44px;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, border-color .3s ease;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 44px;
  gap: 20px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 280px;
}

.topbar-info span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar-info i { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  background: var(--dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 95px;
  max-width: 1500px;
  transition: height .3s ease;
}

.header-wrap.is-scrolled .site-header .container { height: 64px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 280px;
  margin-right: 250px;
}

.main-nav a {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}

.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: 18px;
  color: var(--white);
  cursor: pointer;
}

/* ---------- Floating call CTA ---------- */
.call-cta {
  position: absolute;
  top: -14px;
  right: 32px;
  z-index: 1001;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  padding: 0 26px 0 8px;
  box-shadow: 0 16px 32px rgba(243,156,18,.35);
  transition: opacity .3s ease, transform .3s ease;
}

.call-cta-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.call-cta-text { display: flex; flex-direction: column; line-height: 1.3; }
.call-cta-text small { font-size: 12px; font-weight: 500; opacity: .9; }
.call-cta-text strong { font-family: var(--font-head); font-size: 15px; font-weight: 700; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--accent);
  color: var(--white);
  overflow: hidden;
}

.hero-intro { /*max-width: 780px;*/ margin: 0 auto; padding: 56px 0 64px; text-align: center; }

.hero .eyebrow { color: var(--dark); }

.hero h1 {
  color: var(--white);
  font-size: clamp(25px, 4.0vw, 37px);
}

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

/* Split hero: two halves, one per audience */
.hero-split {
  position: relative;
  display: flex;
  min-height: 460px;
}

/* Desktop only: hero fills the screen exactly (viewport height minus the
   sticky nav and minus the fixed-height intro strip below it). */
@media (min-width: 861px) {
  .hero-intro {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
  }

  .hero-split {
    height: calc(100vh - 139px - 150px);
    min-height: 420px;
  }
}

.hero-half {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 56px 56px;
  overflow: hidden;
  transition: flex-grow .35s ease;
}

/* Photo layer, isolated so it can zoom on hover without affecting text/overlay */
.hero-half-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.4s ease;
  will-change: transform;
}

.hero-half:hover .hero-half-bg { transform: scale(1.1); }

.hero-half::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity .35s ease;
}

.hero-half--aziende::before { background: linear-gradient(200deg, rgba(44,44,44,.55) 0%, rgba(20,20,20,.92) 100%); }
.hero-half--privati::before { background: linear-gradient(200deg, rgba(243,156,18,.5) 0%, rgba(28,28,28,.9) 100%); }

.hero-half:hover { flex-grow: 1.12; }

.hero-half-tag {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: auto;
}

.hero-half-content { position: relative; z-index: 2; max-width: 420px; }

.hero-half-content h1 { color: var(--white); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 12px; font-family: var(--font-head); font-weight: 600; line-height: 1.25; }

.hero-half-content p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-split-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 56px; margin-bottom: -60px;
  padding: 34px 20px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.trust-item i {
  font-size: 28px;
  color: var(--accent);
}

.trust-item span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
}

/* ---------- Split: Aziende / Privati ---------- */
.split-section { padding: 100px 0; background: var(--offwhite); }

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}

.split-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}

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

.split-card .card-media {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.split-card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
}

.split-card.dark .card-media::after {
  background: linear-gradient(0deg, var(--dark) 0%, rgba(44,44,44,0) 100%);
}

.split-card.light .card-media::after {
  background: linear-gradient(0deg, var(--white) 0%, rgba(255,255,255,0) 100%);
}

.card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  z-index: 2;
}

.split-card .card-body {
  padding: 40px 36px 44px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.split-card.dark {
  background: var(--dark);
  color: var(--white);
}

.split-card.light {
  background: var(--white);
  color: var(--text);
}

.split-card .card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}

.split-card.dark .card-icon { background: rgba(243,156,18,.15); color: var(--accent); }
.split-card.light .card-icon { background: #fdf1de; color: var(--accent); }

.split-card h3 { font-size: 26px; margin-bottom: 10px; }
.split-card.dark h3 { color: var(--white); }

.split-card .card-lead {
  font-size: 15px;
  margin-bottom: 26px;
}
.split-card.dark .card-lead { color: var(--text-on-dark-muted); }
.split-card.light .card-lead { color: var(--text-muted); }

.service-list { margin-bottom: 32px; flex: 1; }

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.split-card.light .service-list li { border-bottom: 1px solid var(--border); }

.service-list li:last-child { border-bottom: none; }

.service-list i { color: var(--accent); margin-top: 3px; font-size: 14px; }

/* ---------- Divani & Poltrone ---------- */
.care-section { padding: 100px 0; background: var(--white); }

.care-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.care-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  /*ox-shadow: var(--shadow-lg);*/
}

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

.care-badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 14px;
}

.care-badge i { color: var(--accent); font-size: 22px; }
.care-badge strong { display: block; font-family: var(--font-head); font-size: 15px; }
.care-badge span { font-size: 12px; color: var(--text-muted); }

.care-content .card-icon {
  width: 58px; height: 58px; border-radius: 14px;
  background: #fdf1de; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 22px;
}

.care-features {
  display: grid;
  gap: 18px;
  margin: 30px 0 34px;
}

.care-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--offwhite);
  border-radius: 12px;
}

.care-feature i {
  width: 40px; height: 40px;
  background: var(--white);
  color: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.care-feature h4 { font-size: 16px; margin-bottom: 4px; }
.care-feature p { font-size: 14px; color: var(--text-muted); }

/* ---------- Process ---------- */
.process-section {
  padding: 100px 0;
  color: var(--white);
  background-image: linear-gradient(180deg, rgba(28,28,28,.88), rgba(28,28,28,.93)), url("../img/process-warehouse.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* background-attachment:fixed is unreliable/unsupported on touch devices
   (notably iOS Safari) — fall back to a normal scrolling background there. */
@media (max-width: 860px), (hover: none) {
  .process-section { background-attachment: scroll; }
}

.process-section .section-head p { color: var(--text-on-dark-muted); }
.process-section .section-head h2 { color: var(--white); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.process-step {
  background: var(--dark-soft);
  border-radius: 14px;
  padding: 34px 26px;
  position: relative;
  border: 1px solid rgba(255,255,255,.06);
}

.process-step .step-no {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: rgba(243,156,18,.25);
  line-height: 1;
  margin-bottom: 18px;
}

.process-step i {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 14px;
  display: block;
}

.process-step h4 { color: var(--white); font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-on-dark-muted); }

/* ---------- Coverage strip ---------- */
.coverage-strip {
  background: var(--offwhite);
  padding: 46px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coverage-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
}

.coverage-inner i { color: var(--accent); font-size: 22px; }

.coverage-inner p {
  font-family: var(--font-head);
  font-size: 25px;
  font-weight: 500;
  color: var(--dark);
}

.coverage-inner strong { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-section {
  padding: 110px 0;
  background: var(--dark);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.contact-section .section-head { margin-bottom: 30px; }
.contact-section .section-head h2 { color: var(--white); }
.contact-section .section-head p { color: var(--text-on-dark-muted); }

.contact-info-list { display: grid; gap: 18px; margin-bottom: 34px; }

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info-item i {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(243,156,18,.15);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-item strong { display: block; font-family: var(--font-head); font-size: 15px; }
.contact-info-item span { font-size: 14px; color: var(--text-on-dark-muted); }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 8px;
  color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--offwhite);
  transition: border-color .2s ease, background .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1f1f1f;
  color: var(--text-on-dark-muted);
  padding: 35px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 46px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand img { height: 50px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 280px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.footer-social a:hover { background: var(--accent); color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 14px; transition: color .2s ease; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

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

/* ---------- Reveal animation ----------
   WOW.js-style: elements are visible by default (safe with no JS).
   script.js adds "animated" + a data-reveal animation name (animate.css)
   once the element scrolls into view. */
[data-reveal].animated {
  animation-duration: .9s;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 10000;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  transition: top .2s ease;
}

.skip-link:focus-visible {
  top: 16px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner { text-align: center; }

.preloader-logo { height: 80px; width: auto; margin: 0 auto 22px; display: block; }

.preloader-text {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 18px;
}

.preloader-dots { display: flex; align-items: center; justify-content: center; gap: 10px; }

.preloader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: preloader-pulse 1.2s ease-in-out infinite;
}

.preloader-dots span:nth-child(2) { animation-delay: .2s; }
.preloader-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes preloader-pulse {
  0%, 80%, 100% { transform: scale(.6); opacity: .5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ---------- Accessible focus ---------- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: var(--white);
}

.main-nav a:focus-visible { outline-offset: 4px; }
.call-cta:focus-visible,
.nav-toggle:focus-visible { outline-offset: 3px; }

/* ---------- Privacy consent checkboxes ---------- */
.privacy-group { display: grid; gap: 12px; }

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
}

.privacy-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: minmax(0, 1fr); }
  .care-grid { grid-template-columns: minmax(0, 1fr); }
  .care-media { height: 340px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero-split { flex-direction: column; }
  .hero-half { min-height: 320px; padding: 30px 28px; }
  .hero-split-divider { display: none; }
}

/* Header collapses to the compact/hamburger layout earlier than the rest of
   the page content: with 7 nav items (Home, Aziende, Privati, Divani &
   Poltrone, Come lavoriamo, Cosa offriamo, Contatti) there isn't enough
   room to fit the logo, the full text nav and the call button on one line
   until quite wide viewports (the nav alone needs ~900px, plus ~530px
   reserved for the logo/call button either side, and the header's own
   container is widened up to 1500px below to give it room — see
   .site-header .container). Below 1500px we reuse the same compact/
   hamburger header as mobile. */
@media (max-width: 1499px) {
  /* No topbar, single compact bar with logo, call button and hamburger
     all vertically centered. */
  .topbar { display: none; }

  .site-header .container { height: 76px; }
  .header-wrap.is-scrolled .site-header .container { height: 76px; }

  .brand {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    height: 46px;
    padding: 0;
    background: none;
  }

  .main-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .main-nav.is-open {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    margin-right: 0;
    margin-left: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 26px;
    box-shadow: 0 16px 30px rgba(0,0,0,.08);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.is-open a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); color: var(--dark); }

  .call-cta {
    top: 50%;
    transform: translateY(-50%);
    right: 72px;
    padding: 0;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
  .call-cta-icon { width: 34px; height: 34px; font-size: 15px; }
  .call-cta-text { display: none; }
}


@media (max-width: 640px) {
  .hero-intro { padding: 40px 0 44px; }
  .hero-half { min-height: 280px; padding: 26px 22px; }
  .brand { left: 16px; height: 60px; }
  .call-cta { right: 85px; width: 44px; height: 44px; }
  .call-cta-icon { width: 30px; height: 30px; font-size: 14px; }
  .nav-toggle { width: 40px; height: 40px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-form { padding: 28px; }
  .split-card .card-body { padding: 30px 24px 34px; }
  .care-content {padding: 15px;}
	
	.g-recaptcha {
		transform: scale(0.80);
		-webkit-transform: scale(0.80);
		transform-origin: 0 0;
		-webkit-transform-origin: 0 0;
		margin: 10px 0;
	}
	.privacy-group{
		display: block;
	}
	.split-section .btn{
		font-size: 14px;
	}
}



.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);
  }

/* ---------- Nav active state (catalog pages) ---------- */
.main-nav a.active { color: var(--accent); }
.main-nav a.active::after { width: 100%; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-bar { background: var(--offwhite); border-bottom: 1px solid var(--border); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { font-weight: 600; color: var(--dark); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--accent); font-weight: 600; }

/* ---------- Catalog layout ---------- */
.catalog-section { padding: 60px 0 100px; background: var(--white); }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.catalog-sidebar {
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  position: sticky;
  top: 116px;
}

.catalog-sidebar h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 18px;
}

.cat-list { display: grid; gap: 4px; }

.cat-item { border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 8px; }
.cat-item:last-child { border-bottom: none; margin-bottom: 0; }

.cat-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  padding: 10px 4px;
  cursor: pointer;
  text-align: left;
}

.cat-toggle i { color: var(--accent); font-size: 13px; transition: transform .25s ease; flex-shrink: 0; }
.cat-item.is-open .cat-toggle i { transform: rotate(180deg); }

.subcat-list {
  display: grid;
  gap: 2px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.cat-item.is-open .subcat-list { max-height: 300px; }

.subcat-list a {
  display: block;
  padding: 8px 4px 8px 18px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 6px;
  position: relative;
}

.subcat-list a::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

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

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.catalog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.catalog-card-media { height: 180px; display: block; background-size: cover; background-position: center; }

.catalog-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }

.catalog-card-body h3 { font-size: 17px; margin-bottom: 10px; }

.catalog-card-body .clamp-2 {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-height: calc(1.6em * 2);
  overflow: hidden;
  margin-bottom: 18px;
  flex: 1;
}

.catalog-card-body .btn { align-self: flex-start; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 46px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--offwhite);
  color: var(--dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ---------- Detail page ---------- */
.detail-section { padding: 50px 0 100px; }

.detail-header { max-width: 820px; margin: 0 0 40px; }
.detail-header h1 { font-size: clamp(28px, 3.6vw, 42px); }

/* Two columns below the title: gallery on the left, text + CTA on the right */
.detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}

.detail-body { color: var(--text-muted); font-size: 16px; }
.detail-body p { margin-bottom: 18px; }
.detail-body .btn { margin-top: 10px; }

/* ---------- Gallery (main + thumbs synced sliders) ---------- */
.gallery-main {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-main .swiper-slide {
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

.gallery-main .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { margin-top: 16px; padding: 0 4px; }

.gallery-thumbs .swiper-slide {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  opacity: .55;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity .2s ease, border-color .2s ease;
}

.gallery-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--accent); }
.gallery-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

/* Swiper nav arrows, restyled to match the brand */
.gallery .swiper-button-prev,
.gallery .swiper-button-next {
  width: 42px;
  height: 42px;
  background: rgba(44,44,44,.55);
  border-radius: 50%;
  color: var(--white);
  backdrop-filter: blur(3px);
}
.gallery .swiper-button-prev:after,
.gallery .swiper-button-next:after { font-size: 15px; font-weight: 700; }

.gallery-thumbs.swiper-container .swiper-button-prev,
.gallery-thumbs.swiper-container .swiper-button-next {
  width: 32px;
  height: 32px;
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow);
}
.gallery-thumbs.swiper-container .swiper-button-prev:after,
.gallery-thumbs.swiper-container .swiper-button-next:after { font-size: 12px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(20,20,20,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox-stage {
  width: min(86vw, 1100px);
  aspect-ratio: 16 / 10;
}

.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent); border-color: var(--accent); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1024px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .catalog-sidebar { position: static; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-main .swiper-slide { aspect-ratio: 4 / 3; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 15px; }
  .lightbox-close { width: 40px; height: 40px; top: 14px; right: 14px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}


.wa-link {
      width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #25D366;
    color: #fff !important;
    font-size: 16px;
    text-align: center;
    z-index: 99;
    position: fixed;
    bottom: 80px;
    right: 30px;
    display: none;
    transition: all 0.5s ease;
    border-radius: 40px;
}