/* ============================================
   M&R Multiservizi — Components
   Valori esatti da Figma
   ============================================ */

/* ---- HEADER (floating pill) ---- */
.header {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 18px 28px 18px 36px;
  display: flex;
  align-items: center;
  gap: 32px;
  z-index: 100;
  box-shadow: var(--shadow-header);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header__logo-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
}
.header__logo-sub {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-blue);
  letter-spacing: 3px;
}
.header__logo img,
.custom-logo-link img,
img.custom-logo {
  height: 40px !important;
  width: auto !important;
  max-height: 40px !important;
}

.header__spacer {
  flex: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  white-space: nowrap;
}
.header__nav a:hover {
  color: var(--color-blue);
}

/* Dropdown Servizi */
.header__dropdown {
  position: relative;
}
.header__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.header__dropdown-trigger svg {
  transition: transform var(--transition);
}
.header__dropdown:hover .header__dropdown-trigger svg {
  transform: rotate(180deg);
}
.header__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.header__dropdown:hover .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.header__dropdown-menu a {
  display: block;
  background: var(--color-white);
  padding: 10px 24px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background var(--transition), color var(--transition);
}
.header__dropdown-menu a:first-child {
  border-radius: 8px 8px 0 0;
  padding-top: 14px;
}
.header__dropdown-menu a:last-child {
  border-radius: 0 0 8px 8px;
  padding-bottom: 14px;
}
.header__dropdown-menu a:hover {
  background: var(--color-pale);
  color: var(--color-blue);
}

.header__cta {
  padding: 12px 24px;
  font-size: 14px;
  flex-shrink: 0;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
/* ---- HERO (base) ---- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 200px 80px 125px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg video + .hero__fallback {
  display: none;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 45, 90, 0.75);
}

/* ---- HERO VIDEO (homepage) ---- */
.hero--video {
  min-height: 92vh;
  padding: 180px 40px 80px;
  gap: 24px;
}

.hero--video .hero__bg::after {
  background: linear-gradient(
    to bottom,
    rgba(15, 25, 55, 0.3) 0%,
    rgba(15, 25, 55, 0.5) 60%,
    rgba(15, 25, 55, 0.8) 100%
  );
}

/* Fade-in animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__headline {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: heroFadeUp 0.8s ease-out both;
  animation-delay: 0.3s;
}

.hero--video .hero__cta {
  position: relative;
  z-index: 1;
  font-size: 16px;
  padding: 16px 36px;
  animation: heroFadeUp 0.8s ease-out both;
  animation-delay: 0.6s;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero--video .hero__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.4);
}

/* Scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__scroll.is-visible {
  opacity: 1;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  min-height: 8vh;
  padding: 0 40px;
  background: var(--color-navy);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.trust-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
}

/* ---- HERO INNER PAGES (legacy) ---- */
.hero__content {
  position: relative;
  z-index: 1;
  background: var(--color-navy);
  border-radius: var(--radius-lg);
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-light-blue);
  text-align: center;
  line-height: 1.65;
  margin: 0;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  overflow: hidden;
}

.hero__badges {
  display: flex;
  gap: 40px;
  padding-top: 16px;
  overflow: hidden;
}

/* ---- SECTION (generico) ---- */
.section {
  padding: 80px;
  overflow: hidden;
}

.section--gray {
  background: var(--color-gray-100);
}

.section--pale {
  background: var(--color-pale);
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
  overflow: hidden;
}

.section__label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-blue);
  text-transform: uppercase;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ---- CHI SIAMO TEASER ---- */
.chi-siamo-teaser {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 80px;
  overflow: hidden;
}

.chi-siamo-teaser__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 580px;
  flex-shrink: 0;
  overflow: hidden;
}

.chi-siamo-teaser__label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-blue);
  text-transform: uppercase;
}

.chi-siamo-teaser__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.chi-siamo-teaser__desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-gray-600);
  margin: 0;
}

.chi-siamo-teaser__image {
  width: 576px;
  height: 380px;
  background: var(--color-pale);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chi-siamo-teaser__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chi-siamo-teaser__placeholder {
  font-size: 14px;
  font-weight: 500;
  color: rgba(45, 106, 175, 0.5);
}

/* ---- SERVICE CARD ---- */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  overflow: hidden;
}

.service-card {
  width: calc(50% - 12px);
  background: var(--color-white);
  border: 1px solid #ebebeb;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-card__image {
  height: 200px;
  overflow: hidden;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px 28px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.service-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-gray-600);
  margin: 0;
}

.service-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-gray-600);
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

.service-card__link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-blue);
}

/* ---- CERTIFICATION CARD ---- */
.certs-grid {
  display: flex;
  gap: 32px;
  overflow: hidden;
}

.cert-card {
  width: 400px;
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.cert-card__subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue);
  margin: 0;
}

.cert-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-gray-600);
  margin: 0;
}

/* ---- CLIENT BADGES ---- */
.clients-section {
  background: var(--color-pale);
  padding: 80px;
  overflow: hidden;
}

.clients-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.clients-row {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.client-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-navy);
}

.client-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
}

/* ---- TARGET CARDS (Clienti) ---- */
.target-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.target-row {
  display: flex;
  gap: 24px;
}

.target-card {
  flex: 1;
  min-width: 0;
  background: #f5f8fc;
  border-radius: var(--radius-md);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.target-card__icon {
  width: 40px;
  height: 40px;
  line-height: 1;
}
.target-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: invert(36%) sepia(52%) saturate(682%) hue-rotate(178deg) brightness(87%) contrast(89%);
}

.target-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.target-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-gray-600);
  margin: 0;
}

/* ---- SERVICE INTRO ---- */
.service-intro {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 80px;
  overflow: hidden;
}

.service-intro__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 580px;
  flex-shrink: 0;
  overflow: hidden;
}

.service-intro__label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-blue);
  text-transform: uppercase;
}

.service-intro__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 0;
}

.service-intro__desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-gray-600);
  margin: 0;
}

.service-intro__subtitle {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.service-intro__list {
  font-size: 15px;
  line-height: 2;
  color: var(--color-gray-600);
}
.service-intro__list p {
  margin: 0;
}

.service-intro__image {
  flex: 1;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-pale);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 400px;
}
.service-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-intro__placeholder {
  font-size: 14px;
  font-weight: 500;
  color: rgba(45, 106, 175, 0.5);
}

/* ---- FAQ ---- */
.faq-section {
  background: var(--color-gray-100);
  padding: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  overflow: hidden;
}

.faq-items {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 0 40px;
  overflow: hidden;
}

.faq-item {
  padding: 24px 0;
  border-top: 1px solid #d2dae6;
  border-bottom: 1px solid #d2dae6;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.faq-item + .faq-item {
  border-top: none;
}

.faq-item__question {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-item__question span:first-child {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy);
}
.faq-item__toggle {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-blue);
  flex-shrink: 0;
}

.faq-item__answer {
  font-size: 15px;
  line-height: 1.7;
  color: #787878;
  margin: 0;
}

/* ---- PILLAR CARDS (Chi Siamo) ---- */
.pillars-container {
  display: flex;
  gap: 32px;
  background: rgba(140, 189, 217, 0.11);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pillar-card {
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 28px;
  text-align: center;
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
}
.pillar-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: invert(36%) sepia(52%) saturate(682%) hue-rotate(178deg) brightness(87%) contrast(89%);
}

.pillar-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-navy);
  margin: 0;
}

.pillar-card__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-gray-600);
  margin: 0;
  width: 344px;
}

/* ---- CONTACT CARDS ---- */
.contact-cards {
  display: flex;
  gap: 32px;
  overflow: hidden;
}

.contact-card {
  width: 400px;
  min-height: 280px;
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: invert(36%) sepia(52%) saturate(682%) hue-rotate(178deg) brightness(87%) contrast(89%);
}

.contact-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.contact-card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-gray-600);
  margin: 0;
}

/* ---- FORM SECTION ---- */
.form-section {
  background: var(--color-gray-100);
  padding: 80px;
  display: flex;
  gap: 64px;
  overflow: hidden;
}

.form-section__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 580px;
  flex-shrink: 0;
}

.form-section__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.form-section__desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-gray-600);
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field__label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
}

.form-field__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--color-white);
  border: 1px solid #d9d9d9;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition);
}
.form-field__input::placeholder {
  color: #b3b3b3;
}
.form-field__input:focus {
  border-color: var(--color-blue);
}

.form-field__textarea {
  height: 120px;
  padding: 16px;
  resize: vertical;
}

.form-section__map {
  width: 576px;
  height: 580px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.form-section__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--color-navy);
  padding: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.cta-band__title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0;
}

.cta-band__subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-light-blue);
  margin: 0;
}

.cta-band__buttons {
  display: flex;
  gap: 16px;
  overflow: hidden;
}

/* ---- FOOTER ---- */
.footer {
  background: #0f1937;
  padding: 64px 80px 28px;
  color: #99a6bf;
  border-top: 3px solid var(--color-blue);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 320px;
  flex-shrink: 0;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #99a6bf;
  margin: 0;
}

.footer__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}
.footer__trust li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #b8c4db;
  background: rgba(45, 106, 175, 0.18);
  border: 1px solid rgba(140, 189, 217, 0.22);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.footer__logo img {
  height: 50px;
  width: auto;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 4px;
  padding-bottom: 8px;
  position: relative;
}
.footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 2px;
}

.footer__link {
  font-size: 14px;
  color: #99a6bf;
  transition: color var(--transition), transform var(--transition);
}
.footer__link:hover {
  color: var(--color-white);
}
.footer__col:not(.footer__col--contact) .footer__link:hover {
  transform: translateX(3px);
}

.footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}
.footer__ico {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-light-blue);
  transition: color var(--transition);
}
a.footer__contact:hover .footer__ico {
  color: var(--color-white);
}

.footer__divider {
  height: 1px;
  background: #334059;
  margin: 40px auto 0;
  max-width: 1200px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 18px auto 0;
  font-size: 12px;
  color: #738099;
}
.footer__legal {
  margin: 0;
}
.footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #99a6bf;
  white-space: nowrap;
  transition: color var(--transition);
}
.footer__totop:hover {
  color: var(--color-white);
}
.footer__totop svg {
  transition: transform var(--transition);
}
.footer__totop:hover svg {
  transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   UX/UI FIXES — audit 2026-07-08
   ============================================ */

/* Cap content width on very large screens */
.section__header,
.services-grid,
.certs-grid,
.contact-cards,
.faq-items,
.clients-rows,
.pillars,
.form-section,
.chi-siamo-teaser {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* Card grid: let hover lift/shadow breathe (page-level overflow-x guards horizontal) */
.services-grid { overflow: visible; }

/* Homepage hero lead / value proposition */
.hero__lead {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

/* FAQ accordion — progressive enhancement (no-JS = all answers open) */
.faq-item.is-collapsible .faq-item__answer {
  max-height: 400px;
  opacity: 1;
  transition: max-height var(--transition), opacity var(--transition), margin var(--transition);
}
.faq-item.is-collapsible.is-collapsed {
  gap: 0;
}
.faq-item.is-collapsible.is-collapsed .faq-item__answer {
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
}
.faq-item__answer {
  color: var(--color-gray-600);
}
.faq-item__toggle {
  transition: transform var(--transition);
}
.faq-item__question:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dropdown open state (click/keyboard — complements desktop :hover) */
.header__dropdown.is-open .header__dropdown-menu {
  opacity: 1;
  visibility: visible;
}
.header__dropdown.is-open .header__dropdown-trigger svg {
  transform: rotate(180deg);
}

/* Hamburger → X when open */
.header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .services-grid { flex-direction: column; }
  .service-card { width: 100%; }
  .certs-grid { flex-direction: column; }
  .cert-card { width: 100%; }
  .clients-row { flex-wrap: wrap; justify-content: center; }
  .contact-cards { flex-direction: column; }
  .contact-card { width: 100%; height: auto; }
  .form-section { flex-direction: column; }
  .form-section__form { width: 100%; }
  .form-section__map { width: 100%; height: 300px; }
  .service-intro { flex-direction: column; }
  .service-intro__content { width: 100%; }
  .service-intro__image { width: 100%; min-height: 300px; }
  .target-row { flex-wrap: wrap; }
  .target-card { flex: 1 1 calc(50% - 12px); min-width: 200px; }
}

@media (max-width: 768px) {
  /* Header */
  .header__nav { display: none; }
  .header__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-header);
  }
  .header__toggle { display: flex; }
  .header__cta { display: none; }
  /* Tap targets ≥44px in open menu */
  .header__nav.is-open a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 6px 0;
  }
  /* Dropdown inline (no hover on touch) */
  .header__dropdown { width: 100%; }
  .header__dropdown-menu {
    position: static;
    transform: none;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .header__dropdown.is-open .header__dropdown-menu { display: block; }
  .header__dropdown-menu a {
    background: transparent;
    box-shadow: none;
    padding: 6px 0 6px 16px;
    border-radius: 0;
  }

  /* Hero */
  .hero { padding: 120px 20px 80px; }
  .hero--video { min-height: 92vh; padding: 140px 20px 60px; }
  .hero__headline { font-size: 38px; letter-spacing: -1px; }
  .hero__content { padding: 32px 24px; }
  .hero__title { font-size: 32px; }
  .hero__buttons { flex-direction: column; }
  .hero__badges { flex-direction: column; gap: 8px; }
  .trust-bar { flex-direction: column; align-items: center; gap: 12px; padding: 16px 20px; }

  /* Chi Siamo */
  .chi-siamo-teaser { flex-direction: column; padding: 48px 20px; }
  .chi-siamo-teaser__text { width: 100%; }
  .chi-siamo-teaser__image { width: 100%; height: 250px; }

  /* Sections */
  .section { padding: 48px 20px; }
  .section__title { font-size: 28px; }

  /* Clients */
  .clients-section { padding: 48px 20px; }
  .clients-row { flex-wrap: wrap; }

  /* Service Intro */
  .service-intro { padding: 48px 20px; flex-direction: column; }
  .service-intro__content { width: 100%; }
  .service-intro__title { font-size: 28px; }
  .service-intro__image { width: 100%; min-height: 250px; }

  /* FAQ */
  .faq-section { padding: 48px 20px; }
  .faq-items { padding: 0 20px; }

  /* CTA Band */
  .cta-band { padding: 48px 20px; }
  .cta-band__title { font-size: 28px; }
  .cta-band__buttons { flex-direction: column; }

  /* Footer */
  .footer { padding: 44px 20px 24px; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__brand { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
