/* ==========================================================================
   SH PONTEGGI — stile "chiaro e pulito"
   Palette: bianco / grigio acciaio / rosso brand (#9E1B1B dal logo)
   ========================================================================== */

:root {
  --red: #9e1b1b;
  --red-dark: #7c1414;
  --ink: #1c2228;
  --gray-700: #4a545e;
  --gray-500: #71808f;
  --gray-200: #e4e8ec;
  --gray-100: #f4f6f8;
  --white: #ffffff;
  --whatsapp: #1fa855;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 34, 40, .10);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

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

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(158, 27, 27, .35);
}
.btn--primary:hover { background: var(--red-dark); }
.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(31, 168, 85, .3);
}
.btn--whatsapp:hover { background: #17853f; }
.btn--outline {
  border: 2px solid var(--red);
  color: var(--red);
  background: transparent;
}
.btn--outline:hover { background: var(--red); color: var(--white); }
/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .7rem;
}
.header__brand img { width: 190px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .2s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle--open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.93) 34%,
    rgba(255,255,255,.55) 60%,
    rgba(255,255,255,.15) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 5rem;
  max-width: 720px;
  margin-left: calc((100% - min(1160px, 100% - 2.5rem)) / 2);
}
.hero__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--red);
  margin-bottom: .8rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero__text {
  font-size: 1.08rem;
  color: var(--gray-700);
  margin-bottom: 1.8rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 2.2rem;
}
.hero__badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.hero__badges li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 500;
  font-size: .95rem;
}
.hero__badges svg { color: var(--red); flex-shrink: 0; }

/* ---------- Sezioni ---------- */
.section { padding-block: 5.5rem; }
.section--gray { background: var(--gray-100); }

.section__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .9rem;
  color: var(--red);
  margin-bottom: .5rem;
}
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section__intro {
  color: var(--gray-700);
  max-width: 760px;
  margin-bottom: 2.8rem;
}

/* ---------- Card servizi ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.9rem 1.9rem 2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .7rem;
}
.card p { color: var(--gray-700); font-size: .97rem; }

.extras {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2.2rem;
}
.extras li {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  border: 1px solid var(--gray-200);
  position: relative;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.step h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.step p { color: var(--gray-700); font-size: .93rem; }

/* ---------- Chi siamo ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__body p { color: var(--gray-700); margin-bottom: 1.1rem; }
.about__body .btn { margin-top: .6rem; }

/* ---------- Galleria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 230px;
  grid-auto-flow: dense;
  gap: 1rem;
}
.gallery__item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  position: relative;
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(158, 27, 27, 0);
  transition: background .25s ease;
}
.gallery__item:hover::after { background: rgba(158, 27, 27, .15); }

/* ---------- Zone ---------- */
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.zone-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--red);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}
.zone-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.05rem;
  margin-bottom: .45rem;
}
.zone-card p {
  color: var(--gray-700);
  font-size: .92rem;
}
.zones__note { margin-top: 1.6rem; color: var(--gray-700); }
.zones__note a { color: var(--red); font-weight: 600; }

/* ---------- Contatti ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.contact__item { display: flex; flex-direction: column; }
.contact__label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .15rem;
}
.contact__value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
a.contact__value:hover { color: var(--red); }
.contact__value--sm { font-size: 1rem; font-weight: 500; }
.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: .8rem;
}
.btn__lines {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}
.btn__lines small {
  font-size: .78rem;
  font-weight: 500;
  opacity: .85;
}
.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 380px;
}
.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #c6ccd2;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
.footer__brand img {
  width: 200px;
  background: var(--white);
  border-radius: 8px;
  padding: .6rem .9rem;
  margin-bottom: 1rem;
}
.footer__brand p { font-size: .92rem; }
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer__nav a, .footer__contact a {
  color: #c6ccd2;
  text-decoration: none;
  font-size: .95rem;
}
.footer__nav a:hover, .footer__contact a:hover { color: var(--white); }
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .95rem;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.2rem;
  font-size: .85rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 18, 21, .93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox__close,
.lightbox__arrow {
  position: absolute;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: .8rem;
  opacity: .8;
  transition: opacity .15s ease;
}
.lightbox__close:hover,
.lightbox__arrow:hover { opacity: 1; }
.lightbox__close { top: 1rem; right: 1.4rem; font-size: 2.6rem; }
.lightbox__arrow--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__arrow--next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .contact { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero__content {
    margin-left: auto;
    margin-right: auto;
    width: min(1160px, 100% - 2.5rem);
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.6rem 1.8rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 18px 30px rgba(28,34,40,.12);
    transform: translateY(-130%);
    transition: transform .28s ease;
    z-index: 90;
  }
  .nav--open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav__cta { margin-top: .3rem; }

  .hero { min-height: 560px; }
  .hero__media::after {
    background: linear-gradient(180deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.88) 55%,
      rgba(255,255,255,.55) 100%);
  }
  .section { padding-block: 3.8rem; }
  .gallery { grid-auto-rows: 200px; }
}
