:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --red-light: #fdeceb;
  --black: #14151a;
  --charcoal: #23242b;
  --ink: #1c1d22;
  --muted: #666b78;
  --line: #e9e9ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --bg-soft-2: #f1f1f5;
  --white: #ffffff;

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

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;

  --shadow-s: 0 2px 10px rgba(20, 21, 26, 0.06);
  --shadow-m: 0 10px 30px rgba(20, 21, 26, 0.10);
  --shadow-l: 0 24px 60px rgba(20, 21, 26, 0.16);
  --shadow-red: 0 14px 34px rgba(227, 6, 19, 0.28);

  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  color-scheme: light only;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--black);
  line-height: 1.15;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }

section { position: relative; }
section[id], #cookie { scroll-margin-top: 104px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(227,6,19,.36); background: var(--red-dark); }
.btn-ghost {
  background: transparent;
  border-color: rgba(20,21,26,.14);
  color: var(--black);
}
.btn-ghost:hover { border-color: var(--black); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--black);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 700;
  padding: 20px 0;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(20,21,26,.06), var(--shadow-s);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo img { display: block; height: 32px; width: auto; }
.site-header.scrolled .logo img { height: 28px; }
.logo .logo-dark-img { display: none; }
.site-header.scrolled .logo .logo-light-img { display: none; }
.site-header.scrolled .logo .logo-dark-img { display: block; }

.main-nav { display: flex; align-items: center; gap: 1px; flex-shrink: 1; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  padding: 9px 11px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, text-shadow .2s ease;
}
.main-nav a:hover { background: rgba(255,255,255,.14); color: #ffffff; }
.main-nav a.active { color: var(--red); }
.site-header.scrolled .main-nav a { color: var(--charcoal); text-shadow: none; }
.site-header.scrolled .main-nav a:hover { background: var(--bg-soft-2); color: var(--red); }
.site-header.scrolled .main-nav a.active { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-actions .btn { text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.04em; white-space: nowrap; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
  transition: color .2s ease, text-shadow .2s ease;
}
.header-phone svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--red); }
.site-header.scrolled .header-phone { color: var(--charcoal); text-shadow: none; }

.header-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #25D366;
  flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(37,211,102,.4); }
.header-whatsapp svg { width: 18px; height: 18px; color: #ffffff; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.14);
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .3s ease;
}
.site-header.scrolled .burger { background: var(--bg-soft-2); }
.burger span, .burger span::before, .burger span::after {
  content: "";
  display: block;
  width: 19px; height: 2px;
  background: #ffffff;
  border-radius: 2px;
  position: relative;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.scrolled .burger span,
.site-header.scrolled .burger span::before,
.site-header.scrolled .burger span::after { background: var(--black); }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger.open span,
.site-header.scrolled .burger.open span { background: transparent; }
.burger.open span::before { transform: translateY(6px) rotate(45deg); background: var(--white); }
.burger.open span::after { transform: translateY(-6px) rotate(-45deg); background: var(--white); }

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 640;
  background: rgba(10,10,13,.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mobile-nav-backdrop.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 78px; right: 16px;
  z-index: 650;
  width: min(300px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: linear-gradient(160deg, #17181e 0%, #1d1e26 55%, #290609 130%);
  border-radius: 20px;
  box-shadow: var(--shadow-l);
  padding: 14px 22px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(.96);
  transform-origin: top right;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.mobile-nav ul { position: relative; display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.09); }
.mobile-nav li:last-child { border-bottom: none; }
.mobile-nav a {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  padding: 14px 2px;
  display: block;
}
.mobile-nav a span { color: var(--red); }
.mobile-nav .mobile-nav-foot {
  position: relative;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.65);
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.mobile-nav .mobile-nav-foot a { font-family: var(--font-body); font-weight: 600; font-size: 0.84rem; color: var(--white); display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mobile-nav .mobile-nav-foot a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--red); }
.mobile-nav .mobile-nav-foot a:last-child svg { color: #25D366; }

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  min-height: calc(100vh + 70px);
  min-height: calc(100dvh + 70px);
  display: flex;
  align-items: center;
  padding: 168px 0 60px;
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center 35%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 82% -10%, rgba(227,6,19,.4), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(227,6,19,.18), transparent 55%),
    linear-gradient(160deg, rgba(10,11,14,.93) 0%, rgba(18,17,21,.88) 48%, rgba(43,6,10,.85) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 20%, black 40%, transparent 90%);
  opacity: .5;
}
.hero-glow {
  position: absolute;
  width: 640px; height: 640px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(227,6,19,.5) 0%, transparent 68%);
  filter: blur(10px);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(26px); } }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
@media (max-width: 900px) { .hero-net { display: none; } }

.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 720px; }
.hero-inner .eyebrow { color: #ff6b74; }
.hero-inner .eyebrow::before { background: #ff6b74; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--red); position: relative; }
.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 560px;
  margin: 22px 0 36px;
}
.hero-sub-break { display: none; }
@media (min-width: 721px) { .hero-sub-break { display: block; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ghost.on-dark { border-color: rgba(255,255,255,.28); color: var(--white); }
.btn-ghost.on-dark:hover { border-color: var(--white); }

.servizi { padding: 150px 0 110px; background: var(--bg); }
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--bg-soft);
  border-radius: var(--radius-m);
  padding: 32px 28px 30px;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute; inset: auto -30% -60% auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(227,6,19,.10), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.service-card:hover { transform: translateY(-8px); background: var(--white); box-shadow: var(--shadow-l); border-color: transparent; }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: background .3s ease;
}
.service-icon svg { width: 26px; height: 26px; color: var(--white); }
.service-card:hover .service-icon { background: var(--red); }
.service-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.6; margin: 0 0 18px; }
.service-link { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.service-link svg { width: 14px; height: 14px; transition: transform .25s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

.about { padding: 110px 0; background: var(--bg-soft); overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.about-content { max-width: 760px; margin: 0 auto; text-align: center; }
.about-content p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; margin: 0 0 16px; text-align: left; }

.partners { padding: 90px 0; background: var(--bg); }
.partners .section-head { margin-bottom: 40px; }
.marquee {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; }
.marquee-track { display: flex; align-items: center; gap: 48px; width: max-content; }
.marquee-track img { height: 42px; width: 128px; object-fit: contain; filter: grayscale(1) opacity(0.55); transition: filter .25s ease; -webkit-user-drag: none; pointer-events: none; }
.marquee:hover .marquee-track img { filter: grayscale(0) opacity(1); }

.testimonials { padding: 90px 0 110px; background: var(--bg-soft); }
.testimonials-scroller { position: relative; }
.testimonials-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  margin: -4px -4px -16px;
  cursor: grab;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testimonials-grid::-webkit-scrollbar { display: none; }
.testimonials-grid.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.testimonials-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  z-index: 5;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.testimonials-nav:hover { background: var(--red); color: var(--white); transform: translateY(-50%) scale(1.06); }
.testimonials-nav svg { width: 20px; height: 20px; }
.testimonials-prev { left: -26px; }
.testimonials-next { right: -20px; }
.testimonials-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.testimonials-hint svg { width: 16px; height: 16px; color: var(--red); flex-shrink: 0; }
.testimonial-card {
  position: relative;
  flex: 0 0 min(370px, 82vw);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
  height: 340px;
  box-shadow: var(--shadow-s);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.testimonial-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: linear-gradient(90deg, var(--red), #ff6b74);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); border-color: transparent; }
.testimonial-card:hover::before { transform: scaleX(1); }
.testimonial-quote-mark {
  position: absolute;
  top: 8px; right: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  opacity: .07;
  pointer-events: none;
  user-select: none;
}
.testimonial-text {
  position: relative;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 6px 0 10px;
  flex: 1;
  white-space: pre-line;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--red-light) transparent;
}
.testimonial-text::-webkit-scrollbar { width: 5px; }
.testimonial-text::-webkit-scrollbar-track { background: transparent; }
.testimonial-text::-webkit-scrollbar-thumb { background: var(--red-light); border-radius: 3px; }
.testimonial-text:hover::-webkit-scrollbar-thumb { background: var(--red); }
.testimonial-scroll-hint {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red);
  text-align: right;
  margin: 0 0 16px;
  opacity: .75;
}
.testimonial-scroll-hint::after {
  content: "↓";
  display: inline-block;
  animation: testimonialScrollHintBounce 1.4s ease-in-out infinite;
}
.testimonial-card.has-scroll .testimonial-scroll-hint { display: flex; }
@keyframes testimonialScrollHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.testimonial-signature {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  position: relative;
  width: 86px; height: 86px;
  flex-shrink: 0;
  display: block;
}
.testimonial-logo-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color, var(--red-light)) 0%, transparent 70%);
  opacity: .55;
  transition: opacity .25s ease;
}
a.testimonial-avatar:hover .testimonial-logo-glow { opacity: .8; }
.testimonial-logo-wrap {
  position: relative;
  z-index: 1;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-s);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
a.testimonial-avatar:hover .testimonial-logo-wrap { border-color: var(--red); transform: translateY(-2px); box-shadow: var(--shadow-m); }
.testimonial-logo { width: 100%; height: 100%; object-fit: contain; padding: 13px; }
.testimonial-who { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.testimonial-author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
}
.testimonial-company {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4b4e58;
}
.testimonial-company a { color: inherit; text-decoration: none; transition: color .2s ease; }
.testimonial-company a:hover { color: var(--red); text-decoration: underline; }
.testimonial-payoff { font-size: 0.78rem; color: var(--muted); }

.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15,15,18,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-l);
  max-width: 640px; width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: var(--shadow-l);
  transform: translateY(24px) scale(.98);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-content { padding: 32px 36px 40px; position: relative; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-m);
  z-index: 2;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-content h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.modal-content p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; font-size: 0.98rem; }

.modal-box-lg { max-width: min(880px, 94vw); max-height: 92vh; }
.teleassist-content { padding: 44px 40px 44px; }
.teleassist-content h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 16px; }
.teleassist-content > p { max-width: 620px; }
.teleassist-content > p a { color: var(--red); font-weight: 700; white-space: nowrap; }
.teleassist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0 24px;
}
.teleassist-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 28px 24px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.teleassist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.teleassist-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.teleassist-icon svg { width: 26px; height: 26px; }
.teleassist-card h4 { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; margin-bottom: 18px; color: var(--black); }
.teleassist-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.teleassist-card .btn { width: 100%; justify-content: center; }
.teleassist-note { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }

@media (max-width: 560px) {
  .teleassist-grid { grid-template-columns: 1fr; }
  .teleassist-content { padding: 60px 24px 32px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.tracking-search { padding: 60px 0 100px; background: var(--bg); }
.tracking-card {
  position: relative;
  z-index: 3;
  margin-top: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 48px 44px;
  text-align: center;
}
.tracking-card-icon {
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-red);
}
.tracking-card-icon svg { width: 28px; height: 28px; }
.tracking-card h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin-bottom: 12px; }
.tracking-card p { color: var(--muted); font-size: 0.98rem; line-height: 1.65; max-width: 460px; margin: 0 auto 28px; }
.tracking-form { display: flex; gap: 10px; }
.tracking-form input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 15px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  min-width: 0;
  transition: border-color .2s ease, background .2s ease;
}
.tracking-form input:focus { outline: none; border-color: var(--red); background: var(--white); }
.tracking-form .btn { flex-shrink: 0; }

.tracking-result { max-width: 720px; margin: -70px auto 0; position: relative; z-index: 3; background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: 44px; }
.tracking-result h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 22px; }
.tracking-result-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.tracking-result-meta div { background: var(--bg-soft); border-radius: var(--radius-s); padding: 14px 18px; flex: 1; min-width: 200px; }
.tracking-result-meta .k { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.tracking-result-meta .v { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--black); }
.tracking-table-wrap { overflow-x: auto; border-radius: var(--radius-m); border: 1px solid var(--line); }
.tracking-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tracking-table thead th { background: var(--black); color: var(--white); text-align: left; padding: 14px 18px; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }
.tracking-table tbody td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.tracking-table tbody td:first-child { white-space: nowrap; font-weight: 700; color: var(--muted); width: 130px; }
.tracking-notice { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px 24px; color: var(--muted); font-size: 0.95rem; }
.tracking-notice b { color: var(--black); }
.tracking-back { display: inline-flex; margin-top: 26px; }

@media (max-width: 560px) {
  .tracking-card { padding: 36px 24px; margin-left: 16px; margin-right: 16px; }
  .tracking-form { flex-direction: column; }
  .tracking-result { padding: 30px 22px; margin-left: 16px; margin-right: 16px; }
}

.cert-page { padding: 0 0 110px; background: var(--bg); }
.cert-layout {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  margin-bottom: 60px;
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.cert-logo-card {
  flex-shrink: 0;
  width: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-logo-card img { width: 100%; height: auto; object-fit: contain; }
.cert-intro-text h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin-bottom: 14px; }
.cert-intro-text p { color: var(--muted); font-size: 1rem; line-height: 1.7; margin: 0; max-width: 620px; }

.policy-block {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 44px 48px;
  margin-bottom: 24px;
}
.policy-block h2 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 800; margin-bottom: 18px; }
.policy-block > p { color: var(--ink); font-size: 0.98rem; line-height: 1.75; margin: 0 0 18px; }
.policy-list { margin: 0 0 20px; padding-left: 0; list-style: none; counter-reset: policy; }
.policy-list li {
  counter-increment: policy;
  position: relative;
  padding: 0 0 0 40px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.65;
}
.policy-list li::before {
  content: counter(policy);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.policy-list strong { color: var(--black); }
.policy-date { text-align: right; font-size: 0.88rem; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 18px; }

@media (max-width: 720px) {
  .cert-layout { flex-direction: column; text-align: center; padding: 30px 24px; margin-left: 16px; margin-right: 16px; }
  .cert-logo-card { width: 180px; }
  .policy-block { padding: 30px 24px; }
}

.media-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-l);
  border: 2px dashed var(--line);
  background: var(--bg-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
.media-placeholder svg { width: 38px; height: 38px; opacity: .55; }
.media-placeholder span { font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; letter-spacing: .01em; max-width: 220px; }
.svc-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }

.svc-row { padding: 76px 0; }
.svc-row.alt { background: var(--bg-soft); }
.svc-row .container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.svc-row.reverse .container { grid-template-columns: 1.15fr 0.85fr; }
.svc-row.reverse .svc-media { order: 2; }
.svc-row.reverse .svc-text { order: 1; }
.svc-text .eyebrow { margin-bottom: 10px; }
.svc-text h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; margin-bottom: 24px; }
.offer-list { display: flex; flex-direction: column; gap: 13px; }
.offer-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 0.97rem; line-height: 1.6; }
.offer-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.offer-check svg { width: 12px; height: 12px; }

@media (max-width: 900px) {
  .svc-row .container, .svc-row.reverse .container { grid-template-columns: 1fr; gap: 32px; }
  .svc-row.reverse .svc-media, .svc-row.reverse .svc-text { order: 0; }
  .svc-row { padding: 56px 0; }
  .media-placeholder { max-width: 460px; margin: 0 auto; }
}

.hr-section { padding: 20px 0 130px; background: var(--bg); }
.hr-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 52px 56px;
  text-align: center;
}
.hr-card h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 800; margin-bottom: 28px; }
.hr-text { text-align: left; }
.hr-text p { color: var(--ink); font-size: 0.98rem; line-height: 1.75; margin: 0 0 18px; }
.hr-offer {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 24px;
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.65;
}
.hr-offer-label {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-right: 10px;
  margin-bottom: 4px;
}
.hr-req-title { font-weight: 700; color: var(--black); margin-bottom: 10px !important; }
.hr-req-list { margin: 0 0 30px; padding-left: 22px; color: var(--ink); font-size: 0.96rem; line-height: 1.8; }
.hr-req-list li { margin-bottom: 4px; }
.hr-card .btn { margin-top: 6px; }

@media (max-width: 620px) {
  .hr-card { padding: 36px 26px; }
}

.cta-band {
  position: relative;
  margin: 0 24px;
  max-width: calc(var(--container) - 0px);
  margin-left: auto; margin-right: auto;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(120deg, #1a0507 0%, var(--red) 55%, #ff4653 120%);
  padding: 68px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-l);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.16) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: .5;
}
.cta-text { position: relative; max-width: 520px; }
.cta-text h2 { color: var(--white); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 800; }
.cta-text p { color: rgba(255,255,255,.85); margin-top: 12px; font-size: 1.02rem; line-height: 1.6; }
.cta-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

.contact { padding: 20px 0 130px; background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.contact-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: transparent; }
.contact-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .25s ease;
}
a.contact-item:hover .contact-icon { background: var(--red); }
.contact-icon svg { width: 21px; height: 21px; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.contact-value { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--black); margin-top: 3px; line-height: 1.4; }

.contact-form-wrap {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 40px;
}
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form-group { margin-bottom: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: border-color .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }
.contact-form-feedback { margin-top: 16px; font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
.contact-form-feedback.is-success { color: #1a8f4c; }
.contact-form-feedback.is-error { color: var(--red); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-wrap { padding: 30px 24px; }
}
@media (max-width: 560px) {
  .contact-form-row { grid-template-columns: 1fr; gap: 0; }
}

.site-footer { background: var(--black); color: rgba(255,255,255,.75); padding: 100px 0 0; margin-top: 130px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo img { height: 30px; }
.footer-brand p { margin: 18px 0 22px; color: rgba(255,255,255,.55); font-size: 0.92rem; line-height: 1.65; max-width: 300px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.social-row a:hover { background: var(--red); transform: translateY(-3px); }
.social-row svg { width: 17px; height: 17px; color: var(--white); }

.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,.62); font-size: 0.93rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; color: rgba(255,255,255,.62); font-size: 0.93rem; line-height: 1.7; }

.footer-bottom {
  padding: 24px 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--white); }

.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 800;
  max-width: 720px;
  margin: 0 auto;
  background: var(--black);
  color: rgba(255,255,255,.82);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s ease, opacity .3s ease, visibility .3s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(227,6,19,.16);
  color: var(--red-light);
  display: flex; align-items: center; justify-content: center;
}
.cookie-banner-icon svg { width: 20px; height: 20px; }
.cookie-banner p { margin: 0; font-size: 0.86rem; line-height: 1.55; flex: 1; min-width: 220px; }
.cookie-banner p a { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { flex-shrink: 0; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .main-nav, .header-phone, .header-whatsapp { display: none; }
  .burger { display: flex; }
  .servizi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .hero { padding-top: 130px; }
  .servizi { padding: 96px 0 70px; }
  .servizi-grid { grid-template-columns: 1fr; }
  .testimonials-nav { display: none; }
  .testimonials-hint { display: flex; }
  .testimonials-grid {
    padding-left: calc((100% - min(370px, 82vw)) / 2);
    padding-right: calc((100% - min(370px, 82vw)) / 2);
  }
  .cta-band { padding: 44px 28px; flex-direction: column; text-align: center; }
  .cta-text { max-width: 100%; }
  .cta-actions { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
  .site-footer { padding-top: 70px; margin-top: 90px; }
}
