﻿:root {
  --bg: #f2f4f7;
  --bg-soft: #f8f9fb;
  --surface: #ffffff;
  --text: #1a2230;
  --muted: #576175;
  --line: #17345f;
  --line-soft: rgba(23, 52, 95, 0.18);
  --accent: #234d86;
  --radius: 16px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(16, 27, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 100% -10%, rgba(35, 77, 134, 0.08), transparent 60%),
    linear-gradient(180deg, #eef1f5 0%, var(--bg) 100%);
  line-height: 1.6;
}

.auth-locked body > :not(.password-gate) {
  visibility: hidden;
}

.auth-locked body {
  overflow: hidden;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.9), rgba(8, 16, 28, 0.7)),
    url("../img/hero-laser-punzonatrice.png") center / cover no-repeat;
}

.password-gate-card {
  width: min(100%, 430px);
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.password-gate-card h1 {
  margin-bottom: 0;
  font-size: 1.7rem;
}

.password-gate-text {
  color: var(--muted);
}

.password-gate-card label {
  font-weight: 800;
}

.password-gate-card input {
  min-height: 46px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.password-gate-card input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 77, 134, 0.14);
}

.password-gate-error {
  color: #b00020;
  font-weight: 800;
}

main {
  flex: 1;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(242, 244, 247, 0.9);
  border-bottom: 2px solid var(--line);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: #e53935;
}

.header-quick {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin-right: auto;
  margin-left: 0.75rem;
  line-height: 1.2;
}

.header-quick a,
.header-quick span {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-quick a:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--line);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(620px, calc(100vh - 120px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
  background: #101b2d;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.86) 0%, rgba(8, 16, 28, 0.58) 42%, rgba(8, 16, 28, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.18) 0%, rgba(8, 16, 28, 0.52) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  color: #fff;
}

.hero-content h1,
.hero-content .lead {
  max-width: 680px;
}

.hero-content .eyebrow {
  color: #9fc0e8;
}

.hero-content .lead {
  color: #e4ebf5;
}

.page-head {
  position: relative;
  min-height: min(420px, calc(100vh - 180px));
  display: flex;
  align-items: center;
  padding: 4.5rem 0;
  border-bottom: 2px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 16, 28, 0.88) 0%, rgba(8, 16, 28, 0.62) 48%, rgba(8, 16, 28, 0.18) 100%),
    linear-gradient(180deg, rgba(8, 16, 28, 0.08) 0%, rgba(8, 16, 28, 0.55) 100%),
    url("../img/hero-laser-punzonatrice.png") center / cover no-repeat;
  color: #fff;
}

.page-head .container {
  position: relative;
  z-index: 1;
}

.page-head h1,
.page-head .lead {
  max-width: 760px;
}

.page-head .eyebrow {
  color: #9fc0e8;
}

.page-head .lead,
.page-head .meta {
  color: #e4ebf5;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.15fr);
  gap: 2rem;
  align-items: center;
}

.hero-grid > div:first-child {
  max-width: 660px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 0.75rem 0 0;
}

.hero-media {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #101b2d;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 16, 28, 0.68) 100%);
  pointer-events: none;
}

.hero-media figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.2rem;
  color: #fff;
}

.hero-media figcaption strong {
  font-size: 1rem;
  line-height: 1.2;
}

.hero-media figcaption span {
  color: #d7e1ee;
  font-size: 0.92rem;
  line-height: 1.35;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

.section {
  padding: 3.5rem 0;
  border-bottom: 2px solid var(--line);
}

.grid-3 {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.media-split {
  align-items: center;
  gap: 2rem;
}

.media-split p + p {
  margin-top: 0.8rem;
}

.media-panel,
.gallery-image,
.contact-image {
  width: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.media-panel {
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.intro-layout,
.machine-card,
.service-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 2rem;
  align-items: center;
}

.intro-image,
.machine-card img,
.service-strip img {
  width: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-image {
  aspect-ratio: 16 / 8;
}

.strength-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.strength-item {
  min-height: 150px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.64);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.strength-item span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.strength-item p,
.machine-card p,
.service-strip p {
  color: var(--muted);
}

.machine-layout {
  display: grid;
  gap: 2rem;
}

.machine-card {
  padding-block: 0.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.feature-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.feature-card-body {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.feature-card-body h2 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.feature-card-body p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.feature-card-body .btn {
  width: fit-content;
  margin-top: auto;
  padding-inline: 0.9rem;
}

.machine-card img {
  aspect-ratio: 16 / 9;
  max-height: 330px;
}

.machine-card-reverse img {
  order: 2;
}

.tag-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.tag-grid span {
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.service-strip {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-strip img {
  aspect-ratio: 16 / 8;
  max-height: 260px;
  box-shadow: none;
}

.link-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(16, 27, 45, 0.12);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-feed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 180px 1fr;
  height: 430px;
  min-height: 430px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16, 27, 45, 0.13);
}

.blog-post-card img {
  width: 100%;
  height: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.blog-post-content {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 0.65rem;
  padding: 1rem;
}

.blog-post-content h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.blog-excerpt {
  align-self: start;
  max-height: 3.1rem;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.blog-post-card.is-description-open .blog-excerpt {
  align-self: stretch;
  max-height: none;
  overflow: auto;
}

.blog-excerpt p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.blog-desc-toggle {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.blog-more {
  align-self: end;
  width: fit-content;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.page-preview-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.page-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
}

.page-preview img {
  width: 100%;
  height: 118px;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 0;
}

.page-preview p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.page-preview-wide {
  grid-column: 1 / -1;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.page-preview-wide img {
  margin-bottom: 0;
}

.blog-cover,
.article-cover {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  margin-bottom: 0.9rem;
  display: block;
}

.blog-cover {
  aspect-ratio: 18 / 9;
  max-height: 165px;
}

.article-cover {
  aspect-ratio: 16 / 9;
}

.product-cover {
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  margin-bottom: 0.9rem;
  display: block;
}

.video-card {
  display: grid;
  gap: 0.8rem;
}

.gallery-image {
  aspect-ratio: 16 / 10;
}

.video-card video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #000;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 1rem;
  margin-top: 1.25rem;
}

.gallery-tile {
  position: relative;
  min-height: 210px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #101b2d;
  box-shadow: var(--shadow);
}

.gallery-tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile-wide {
  grid-column: span 2;
}

.gallery-tile-tall {
  grid-row: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 28, 0.04) 20%, rgba(8, 16, 28, 0.84) 100%),
    linear-gradient(90deg, rgba(8, 16, 28, 0.42), transparent 58%);
  pointer-events: none;
}

.gallery-tile:hover img {
  transform: scale(1.04);
}

.gallery-tile div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1rem;
  color: #fff;
}

.gallery-tile .eyebrow {
  color: #9fc0e8;
  margin-bottom: 0.2rem;
}

.gallery-tile h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.gallery-tile p:last-child {
  margin: 0.35rem 0 0;
  color: #e4ebf5;
  font-size: 0.9rem;
  line-height: 1.45;
}

.carousel-shell {
  position: relative;
  margin-top: 1.25rem;
  padding-inline: 2.7rem;
}

.gallery-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scroll-snap-type: x mandatory;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.95);
  color: var(--line);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}

.carousel-arrow:hover {
  background: var(--line);
  color: #fff;
}

.carousel-arrow-left {
  left: 0;
}

.carousel-arrow-right {
  right: 0;
}

.gallery-carousel::-webkit-scrollbar {
  height: 8px;
}

.gallery-carousel::-webkit-scrollbar-thumb {
  background: var(--line-soft);
  border-radius: 999px;
}

.carousel-item {
  min-width: min(85vw, 300px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.carousel-item p {
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.meta {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.empty-state {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem;
}

.cta-group {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

.btn {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--line);
  color: #fff;
}

.btn-primary:hover {
  background: #0f2a4f;
}

.btn-ghost {
  background: transparent;
  color: var(--line);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--line);
  color: #fff;
}

.btn-on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.78);
}

.btn-on-dark:hover {
  background: #fff;
  border-color: #fff;
  color: var(--line);
}

.text-link {
  margin-top: 0.6rem;
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 0.45rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fbfcfe;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(35, 77, 134, 0.12);
}

.contact-image {
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
}

.map-embed {
  margin-top: 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  min-height: 320px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.article-layout {
  max-width: 840px;
}

.article-body {
  display: grid;
  gap: 1rem;
}

.article-body p {
  color: var(--muted);
}

.site-footer {
  background: #1f2f46;
  padding: 1.5rem 0;
  flex-shrink: 0;
  scroll-margin-top: 92px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.55fr) minmax(240px, 0.75fr);
  align-items: stretch;
  gap: 1.25rem;
  color: #d7e1ee;
  font-size: 0.95rem;
}

.footer-map,
.footer-hours,
.footer-info {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.footer-label {
  color: #9fc0e8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-map p,
.footer-hours p,
.footer-info p {
  margin: 0;
}

.footer-map iframe {
  width: 100%;
  min-height: 180px;
  border: 0;
  border-radius: 8px;
  margin-top: 0.45rem;
  display: block;
  filter: saturate(0.9);
}

.footer-info {
  justify-items: end;
  text-align: right;
  padding-top: 0.15rem;
}

.footer-hours {
  justify-items: center;
  text-align: center;
  padding-top: 0.15rem;
}

.footer-info a:first-of-type {
  margin-top: 2.65rem;
}

.footer-hours p:nth-child(2) {
  margin-top: 2.65rem;
}

.footer-hours p:not(.footer-label) {
  color: #d7e1ee;
}

.footer-info p {
  color: #b9c7d8;
}

.footer-info a {
  color: #f2f6fc;
  text-decoration: none;
  font-weight: 650;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #f2f6fc;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #9fc0e8;
  text-decoration: underline;
}

.footer-info a:hover {
  color: #9fc0e8;
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f2f46;
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 27, 45, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #2b405f;
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(31, 47, 70, 0.28);
  outline-offset: 3px;
}

.back-to-top span {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-1px);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal,
.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

}

@media (max-width: 920px) {
  .hero {
    min-height: 460px;
  }

  .page-head {
    min-height: 340px;
    padding: 3.25rem 0;
    background-position: 62% center;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .hero-grid,
  .split,
  .grid-3,
  .intro-layout,
  .machine-card,
  .service-strip {
    grid-template-columns: 1fr;
  }

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

  .machine-card-reverse img {
    order: 0;
  }

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

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

  .intro-image,
  .machine-card img,
  .service-strip img {
    max-height: 240px;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .blog-list {
    grid-template-columns: 1fr;
  }

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

  .product-list {
    grid-template-columns: 1fr;
  }

  .page-preview-grid,
  .page-preview-wide {
    grid-template-columns: 1fr;
  }

  .page-preview {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .page-preview-wide {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .page-preview img {
    height: 110px;
  }

  .page-preview-wide img {
    margin-bottom: 0;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery-tile-large,
  .gallery-tile-wide {
    grid-column: span 2;
  }

  .gallery-tile-tall {
    grid-row: span 1;
  }

  .site-nav {
    position: absolute;
    right: 1rem;
    top: 72px;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-top: 3px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: all 0.2s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-radius: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 44px;
    margin-top: 4px;
    border-color: #1f2f46;
    background: #1f2f46;
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 47, 70, 0.18);
  }

  .menu-toggle:hover,
  .menu-toggle:focus-visible {
    background: #2b405f;
  }

  .header-quick {
    display: flex;
    width: auto;
    margin: 0 auto 0 0.15rem;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.08rem;
    line-height: 1.18;
  }

  .header-quick a,
  .header-quick span {
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-wrap {
    flex-wrap: nowrap;
    gap: 0.55rem;
  }

  .carousel-shell {
    padding-inline: 0;
  }

  .carousel-arrow {
    display: none;
  }

  .footer-grid {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .footer-map,
  .footer-hours,
  .footer-info {
    width: 100%;
  }

  .footer-hours,
  .footer-info {
    justify-items: start;
    text-align: left;
  }

  .footer-hours p:nth-child(2),
  .footer-info a:first-of-type {
    margin-top: 0.45rem;
  }

  .footer-map iframe {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 2.5rem 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-content .lead {
    font-size: 0.98rem;
  }

  .cta-group {
    gap: 0.55rem;
  }

  .btn {
    width: 100%;
    min-height: 44px;
  }

  .card {
    padding: 0.9rem;
  }

  .page-preview-grid {
    gap: 0.75rem;
  }

  .page-preview,
  .page-preview-wide {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .page-preview img {
    height: 135px;
    aspect-ratio: auto;
  }

  .page-preview h3 {
    font-size: 1rem;
  }

  .blog-feed {
    grid-template-columns: 1fr;
  }

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

  .feature-card {
    grid-template-rows: 180px 1fr;
  }

  .feature-card img {
    height: 180px;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-tile,
  .gallery-tile-large,
  .gallery-tile-wide,
  .gallery-tile-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

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

  .strength-item {
    min-height: auto;
    padding: 0.9rem;
  }

  .tag-grid {
    gap: 0.55rem;
  }

  .tag-grid span {
    padding: 0.75rem;
  }

  .intro-image,
  .machine-card img,
  .service-strip img {
    max-height: 180px;
  }

  .page-preview p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .text-link {
    margin-top: 0.25rem;
  }
}
