/* Mobile layout overrides */
:root {
  --mobile-padding: clamp(16px, 5vw, 24px);
  --mobile-section: clamp(36px, 9vw, 68px);
}

body {
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

section {
  scroll-margin-top: 120px;
}

main {
  flex: 1 0 auto;
}

.container {
  padding: 0 var(--mobile-padding);
}

header.glass-nav {
  position: sticky;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  border-radius: 0 0 18px 18px;
  padding: 10px var(--mobile-padding) 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand actions"
    "nav nav";
  align-items: center;
  gap: 10px 12px;
}

.brand {
  grid-area: brand;
  justify-content: space-between;
}

.brand-logo {
  width: 96px;
  height: 52px;
  margin-left: 0;
}

header.glass-nav nav {
  grid-area: nav;
  display: none;
  gap: 6px;
  align-items: stretch;
  white-space: normal;
}

header.glass-nav nav a,
header.glass-nav nav .nav-link {
  font-size: 0.95rem;
  padding: 10px 12px;
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

header.glass-nav nav > a:not(:last-child)::after,
header.glass-nav nav > .nav-item:not(:last-child) > a::after,
header.glass-nav nav > .nav-item:not(:last-child) > .nav-link::after {
  content: none;
}

header.glass-nav nav .nav-item {
  display: grid;
  gap: 6px;
}

header.glass-nav nav .nav-submenu {
  position: static;
  display: none;
  gap: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0 0 8px;
}

header.glass-nav nav .nav-submenu a {
  padding: 8px 10px;
  background: rgba(var(--blue-rgb), 0.06);
  border-radius: 10px;
}

header.glass-nav nav .nav-item:hover .nav-submenu,
header.glass-nav nav .nav-item:focus-within .nav-submenu {
  display: none;
}

header.glass-nav nav .nav-item.is-open > .nav-submenu {
  display: grid;
}

.nav-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(11, 29, 51, 0.18);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--blue-800);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

header.glass-nav.nav-open nav {
  display: grid;
}

header.glass-nav.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

header.glass-nav.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

header.glass-nav.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-iso-link {
  display: none;
}

.lang-toggle {
  justify-content: center;
}

.nav-actions .cta {
  display: inline-flex;
  justify-content: center;
}

.hero {
  min-height: auto;
}

.hero__inner {
  min-height: auto;
}

.hero__grid {
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
  max-height: none;
  gap: 12px;
}

.hero-card {
  min-height: 360px;
}

.hero-card__content {
  padding: 140px 18px;
}

.hero-card__content h2 {
  font-size: clamp(1.8rem, 6vw, 2.3rem);
}

.hero-card__text {
  font-size: 1rem;
}

.page-hero {
  padding: 110px 0 56px;
}

.page-hero__content {
  padding: 0 var(--mobile-padding);
}

.page-hero__lead {
  font-size: 1.05rem;
}

.page-hero--compact {
  padding: 60px 0;
  min-height: 320px;
}

.page-hero--compact .page-hero__content {
  margin-top: 80px;
}

.brand-statement {
  padding: var(--mobile-section) var(--mobile-padding);
}

.why__grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.why {
  margin-bottom: 0;
}

.why__note {
  margin-top: 32px;
  font-size: 1rem;
}

.ethics__grid {
  grid-template-columns: 1fr;
  padding: clamp(24px, 6vw, 32px) var(--mobile-padding);
}

.ethics__content {
  padding-left: 0;
  max-width: none;
}

.ethics__media {
  order: 2;
}

.ethics__photo {
  height: 320px;
}

.about__grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.about__media {
  order: 1;
}

.about__photo {
  height: 360px;
}

.about__photo--chi-siamo {
  height: 520px;
}

.team__grid {
  grid-template-columns: 1fr;
}

.team-card {
  grid-template-columns: 1fr;
}

.team-card__photo {
  min-height: 260px;
}

.brands__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-card {
  height: 110px;
  padding: 20px;
  animation: none;
}

.testimonials:not(.testimonials--page) {
  padding: var(--mobile-section) 0;
}

.testimonials:not(.testimonials--page) .testimonials__inner {
  gap: 24px;
}

.testimonials:not(.testimonials--page) .testimonials__header h2 {
  font-size: clamp(1.7rem, 6.5vw, 2.2rem);
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.testimonials:not(.testimonials--page) .testimonials__layout {
  grid-template-columns: 1fr;
  gap: 18px;
}

.testimonials:not(.testimonials--page) .testimonials__viewport {
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(5, 20, 46, 0.08);
}

.testimonials:not(.testimonials--page) .testimonials__track {
  display: grid;
  gap: 16px;
  padding: 0;
  transform: none !important;
  transition: none;
}

.testimonials:not(.testimonials--page) .testimonial-slide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testimonials:not(.testimonials--page) .testimonial-card {
  padding: 16px;
}

.testimonials:not(.testimonials--page) .testimonial-card__meta h3 {
  font-size: 1rem;
}

.testimonials:not(.testimonials--page) .testimonial-card__meta p {
  font-size: 0.9rem;
}

.testimonials:not(.testimonials--page) .testimonial-card__text {
  font-size: 0.98rem;
}

.testimonials:not(.testimonials--page) .testimonial-card__more {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.testimonials:not(.testimonials--page) .testimonials__media {
  min-height: 240px;
}

.testimonials:not(.testimonials--page) .testimonials__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin: 6px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--blue-rgb), 0.28);
  background: #ffffff;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 14px 36px rgba(5, 20, 46, 0.08);
}

.testimonials:not(.testimonials--page) .testimonials__more:focus-visible {
  outline: 2px solid var(--blue-800);
  outline-offset: 2px;
}

.testimonials__note {
  font-size: 0.95rem;
}

.iso__inner {
  grid-template-columns: 1fr;
  text-align: center;
}

.iso__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  margin-top: 30px;
}

.contact {
  padding: var(--mobile-section) var(--mobile-padding);
}

.contact__details {
  grid-template-columns: 1fr;
}

.contact__chips {
  gap: 8px;
}

.contact__form {
  gap: 12px;
}

.footer__inner {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__legal {
  margin-left: 0;
  text-align: center;
  justify-items: center;
  width: 100%;
}

.footer__links {
  flex-wrap: wrap;
  justify-content: center;
  white-space: normal;
}

.footer__brand,
.footer__partner,
.footer__social {
  justify-content: center;
  width: 100%;
}

.site-footer {
  margin-top: auto;
}

@media (max-width: 520px) {
  header.glass-nav {
    border-radius: 0 0 16px 16px;
  }

  .hero-card__content {
    padding: 120px 16px;
  }

  .hero-card {
    min-height: 380px;
  }

  .about__photo {
    height: 280px;
  }

  .about__photo--chi-siamo {
    height: 440px;
  }

  .brands__grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-card {
    height: 120px;
  }

.iso__content {
  padding-bottom: 30px;
}

.iso__content .cta-inline {
  justify-self: center;
  align-self: center;
}

}
