:root {
  /* Palette from LOGO BERTOLAS REBRANDING.png */
  --navy: #084060;
  --navy-deep: #052a40;
  --navy-soft: #487088;
  --yellow: #f0c018;
  --yellow-deep: #d4a60c;
  --yellow-soft: #f0d890;
  --ink: #084060;
  --muted: #4a647a;
  --paper: #ffffff;
  --cream: #f7f5f0;
  --line: rgba(8, 64, 96, 0.16);
  --radius: 0;
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --topbar-h: 34px;
  --shadow: 0 16px 40px rgba(5, 42, 64, 0.12);
  --shadow-soft: 0 10px 28px rgba(5, 42, 64, 0.1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--navy-deep);
  padding: 0.75rem 1rem;
  z-index: 2000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--yellow);
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  font-weight: 700;
  text-align: center;
  padding: 0.45rem 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Header — compact; light bar so logo ufficial retains navy/yellow/white */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(8, 64, 96, 0.1);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(5, 42, 64, 0.1);
}

.header-inner {
  width: min(1180px, calc(100% - 1.75rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.brand {
  background: transparent;
  padding: 0.15rem 0;
  margin: 0;
  align-self: center;
  display: flex;
  align-items: center;
  box-shadow: none;
  border-radius: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.brand:hover { transform: translateY(-1px); opacity: 0.96; }

.brand img {
  width: min(172px, 48vw);
  height: auto;
  max-height: 50px;
  object-fit: contain;
  filter: none;
}

.nav {
  display: flex;
  gap: 0.15rem;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.nav a {
  color: var(--navy);
  opacity: 0.78;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover {
  opacity: 1;
  background: rgba(8, 64, 96, 0.07);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-icons {
  display: flex;
  gap: 0.2rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover {
  background: rgba(8, 64, 96, 0.08);
  transform: translateY(-1px);
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn.is-empty { opacity: 0.35; pointer-events: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(7, 31, 53, 0.18);
}
.btn-sm {
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  font-size: 0.72rem;
  border-radius: 999px;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.header-actions .btn-navy,
.header-actions .btn-sm {
  background: var(--navy);
  color: #fff;
}
.header-actions .btn-navy:hover,
.header-actions .btn-sm:hover {
  background: var(--navy-soft);
}
.btn-yellow { background: var(--yellow); color: #111; }
.btn-yellow:hover { background: var(--yellow-deep); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroZoom 18s var(--ease) infinite alternate;
}
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(7, 31, 53, 0.55) 0%, rgba(7, 31, 53, 0.72) 55%, rgba(7, 31, 53, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4.5rem 0 5.5rem;
  animation: heroIn 0.9s var(--ease) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 6.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
  hyphens: auto;
}
.hero h1 .accent { color: var(--yellow); }

.hero-lead {
  margin: 1rem auto 1.6rem;
  max-width: 36rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-head {
  text-align: center;
  margin-bottom: 2.25rem;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.section-lead {
  margin: 0.85rem auto 0;
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.products {
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.92), rgba(247, 245, 240, 0.96)),
    url("../images/intro-corridoio.jpg") center / cover;
}

.product-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: #fff;
  border: 1px solid rgba(11, 44, 74, 0.18);
  padding: 1.5rem 1.25rem 1.35rem;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  color: inherit;
  width: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}
.product-card.is-hidden { display: none; }

.product-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  color: var(--navy);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.product-card:hover .product-icon {
  transform: scale(1.08);
  color: var(--navy-soft);
}
.product-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }

.product-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-card {
  border: 1px solid rgba(11, 44, 74, 0.18);
  background: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: inherit;
  width: 100%;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--navy);
}
.service-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover img { transform: scale(1.07); }
.service-card .body { padding: 1rem 1rem 1.2rem; }
.service-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.area-section {
  background: var(--cream);
}
.area-subtitle {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  text-align: center;
}
.area-groups {
  display: grid;
  gap: 1.6rem;
}
.area-group h4,
.area-group h5 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
}
.area-group h4 { font-size: 0.95rem; }
.area-group h5 { font-size: 0.85rem; color: var(--navy-soft); }
.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.area-list li {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  color: var(--navy);
}

.strengths {
  background: var(--navy);
  color: #fff;
}
.strengths .section-head h2 { color: #fff; }
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.strength-item {
  padding: 0.35rem 0.25rem;
  transition: transform 0.3s var(--ease);
}
.strength-item:hover { transform: translateY(-3px); }
.strength-item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.strength-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.brands { background: var(--cream); }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
.brand-item {
  --i: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 132px;
  padding: 1.15rem 1rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(11, 44, 74, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(7, 31, 53, 0.04);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
  transition-delay: calc(var(--i) * 18ms);
}
.brand-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(7, 31, 53, 0.12);
  border-color: rgba(11, 44, 74, 0.2);
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}
.brand-item__logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 72px;
}
.brand-item__logo img {
  max-height: 64px;
  width: auto;
  max-width: 88%;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s var(--ease);
}
.brand-item:hover .brand-item__logo img {
  transform: scale(1.08);
}
.brand-item__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  transition: color 0.25s var(--ease);
}
.brand-item:hover .brand-item__name { color: var(--navy); }

.history { background: var(--cream); }
.history-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 2.5rem;
  align-items: stretch;
}
.history-media {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 100%;
}
.history-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.7s var(--ease);
}
.history-media:hover img { transform: scale(1.04); }
.history-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  color: var(--navy);
}
.history-copy p {
  margin: 0 0 1rem;
  color: var(--navy-soft);
  font-size: 1.02rem;
}
.history-copy p:last-child { margin-bottom: 0; }

.team { background: var(--paper); }
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.42fr);
  gap: 2.5rem;
  align-items: stretch;
}
.team-media {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 100%;
}
.team-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.7s var(--ease);
}
.team-media:hover img { transform: scale(1.04); }
.team-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
  color: var(--navy);
}
.team-copy p {
  margin: 0 0 1rem;
  color: var(--navy-soft);
  font-size: 1.02rem;
}
.team-copy p:last-child { margin-bottom: 0; }

.quote {
  background: var(--navy);
  color: #fff;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.quote-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.15;
}
.quote-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  position: relative;
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
}
.contact-form span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 0;
  background: #fff;
  color: var(--navy);
  padding: 0.85rem 0.95rem;
  outline: none;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(232, 184, 42, 0.45);
}
.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-privacy {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.45;
}
.form-privacy input {
  width: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.form-privacy span {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 500;
}
.form-privacy a { color: var(--yellow); }

.instagram { background: var(--paper); }
.ig-handle {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--navy);
  font-weight: 600;
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.ig-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(7, 31, 53, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ig-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 1;
}
.ig-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(7, 31, 53, 0.14);
}
.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.ig-card:hover img { transform: scale(1.08); }

.map-section { background: var(--cream); padding-bottom: 5rem; }
.map-wrap {
  border: 1px solid var(--line);
  overflow: hidden;
  background: #fff;
  min-height: 360px;
}
.map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 3rem 0 0;
  color: var(--navy);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1.1fr 1.1fr 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
  padding-bottom: 2.5rem;
}
.footer-brand img {
  width: 88px;
  height: auto;
}
.site-footer h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer p { margin: 0 0 0.35rem; color: var(--muted); }
.site-footer a {
  color: var(--navy-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.site-footer a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.footer-note { margin-top: 0.5rem !important; font-style: italic; }
.footer-link-wrap { margin-top: 0.55rem !important; font-weight: 600; }
.footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.footer-hours li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 0.75rem;
  border-left: 3px solid var(--yellow);
}
.footer-hours strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.1rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.footer-links .linkish {
  color: var(--navy-soft);
  font-size: 0.95rem;
}
.footer-links .linkish:hover { color: var(--navy); }
.footer-social {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.footer-social .icon-btn {
  color: var(--navy);
  background: transparent;
}
.footer-social .icon-btn:hover { background: rgba(11, 44, 74, 0.08); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.45);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; }
.footer-legal-inline {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.footer-legal-inline a {
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-credit {
  margin-left: auto;
  text-align: right;
  font-weight: 600;
}
.footer-credit a {
  color: var(--navy);
  text-decoration: none;
}
.footer-credit a:hover { text-decoration: underline; }

.map-consent {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  min-height: 360px;
  padding: 2rem 1.25rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(247, 245, 240, 0.92), rgba(247, 245, 240, 0.98)),
    url("../images/intro-corridoio.jpg") center / cover;
}
.map-consent p {
  margin: 0;
  max-width: 28rem;
  color: var(--navy);
  font-weight: 500;
}
.map-external {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.map-wrap iframe[hidden] { display: none; }
.map-wrap.is-ready .map-consent { display: none; }
.map-wrap.is-ready iframe { display: block; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1200;
  padding: 1rem;
  pointer-events: none;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__panel {
  pointer-events: auto;
  width: min(980px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(7, 31, 53, 0.18);
  padding: 1.25rem 1.35rem 1.15rem;
  display: grid;
  gap: 1rem;
  max-height: min(85svh, 640px);
  overflow: auto;
  padding-bottom: max(1.15rem, env(safe-area-inset-bottom));
}
.cookie-banner__main h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy);
  text-transform: uppercase;
}
.cookie-banner__main p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.cookie-banner__main a { color: var(--navy); font-weight: 600; }
.cookie-prefs {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
}
.cookie-pref {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  background: var(--cream);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--navy-soft);
}
.cookie-pref input { margin-top: 0.2rem; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.btn-ghost-cookie {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(11, 44, 74, 0.22);
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-ghost-cookie:hover { background: rgba(11, 44, 74, 0.05); }
.linkish {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

/* Modal */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 31, 53, 0.7);
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: min(90vh, 640px);
  overflow: auto;
}
.modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--navy);
  z-index: 2;
}
.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.modal-body { padding: 1.5rem; }
.modal-kicker {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.modal-body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--navy);
}
.modal-body p { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 960px) {
  .container { width: min(1180px, calc(100% - 2rem)); }
  .product-grid,
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .history-grid,
  .team-grid,
  .quote-grid { grid-template-columns: 1fr; }
  .history-media,
  .team-media {
    min-height: 0;
    height: auto;
  }
  .history-media img,
  .team-media img {
    position: static;
    width: 100%;
    height: auto;
  }
  .history-media img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 15%;
  }
  .team-media img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center 42%;
  }
  .ig-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .modal-dialog { grid-template-columns: 1fr; max-height: min(92svh, 720px); }
  .modal-media img { min-height: 180px; max-height: 240px; }
}

@media (max-width: 760px) {
  .container { width: min(1180px, calc(100% - 1.25rem)); }
  .section { padding: 3rem 0; }
  .section-head { margin-bottom: 1.5rem; }

  .site-header { overflow: visible; }
  .header-inner {
    width: min(1180px, calc(100% - 1rem));
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.45rem;
  }
  .brand { grid-column: 1; min-width: 0; }
  .brand img {
    max-height: 38px;
    width: auto;
    max-width: min(148px, 46vw);
  }
  .header-actions {
    display: flex;
    grid-column: 2;
    gap: 0.25rem;
  }
  .header-icons { display: none; }
  .header-actions .btn-sm {
    min-height: 36px;
    padding: 0.4rem 0.75rem;
    font-size: 0.68rem;
    white-space: nowrap;
  }
  .nav-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    inset: unset;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(0, 42, 64, 0.1);
    z-index: 20;
  }
  .nav a {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
  }
  body.nav-open .nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .product-grid,
  .service-grid,
  .strengths-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .brand-item { min-height: 110px; padding: 0.85rem 0.6rem; }
  .brand-item__logo { height: 54px; }
  .brand-item__logo img { max-height: 48px; max-width: 100%; }
  .brand-item__name {
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

  .topbar {
    display: none !important;
  }
  .hero {
    min-height: min(68svh, 560px);
  }
  .hero-content {
    padding: 3.25rem 0 3.75rem;
  }
  .hero-lead {
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    padding-inline: 0.25rem;
  }
  .product-card,
  .service-card .body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .history-copy,
  .team-copy,
  .quote-copy {
    overflow-wrap: anywhere;
  }
  .map-wrap,
  .map-consent { min-height: 280px; }
  .map-wrap iframe { height: 300px; }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
  .footer-credit {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }
  .site-footer p,
  .site-footer a {
    overflow-wrap: anywhere;
  }

  .cookie-banner {
    padding: 0.65rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
  }
  .cookie-banner__panel {
    padding: 1rem;
    gap: 0.85rem;
  }
  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner__actions .btn,
  .cookie-banner__actions .btn-ghost-cookie { width: 100%; }

  .modal {
    padding: 0.5rem;
    align-items: end;
  }
  .modal-dialog {
    width: 100%;
    max-height: min(92svh, 100%);
    border-radius: 0;
  }
  .modal-body {
    padding: 1.15rem 1rem 1.35rem;
  }
  .modal-body h3,
  .modal-body p {
    overflow-wrap: anywhere;
  }

  .section-cta .btn {
    width: min(100%, 320px);
  }
}

@media (max-width: 420px) {
  .brands-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }
  .brand img { max-width: min(120px, 40vw); }
  .strengths-grid { gap: 1rem; }
}

@media (max-width: 1024px) {
  .topbar {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
