:root {
  --blue: #072d78;
  --blue-dark: #061a45;
  --yellow: #f3df14;
  --ink: #111827;
  --muted: #617084;
  --line: #d9e0ea;
  --surface: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 26, 69, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--blue-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 224, 234, 0.8);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(6, 26, 69, 0.12);
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 8px 20px;
  color: var(--white);
  background: var(--blue-dark);
  font-size: 0.88rem;
}

.top-strip strong {
  color: var(--yellow);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand img {
  width: 154px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-dark);
  background: var(--yellow);
}

.nav-links .nav-cta {
  color: var(--white);
  background: var(--blue);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  color: var(--blue-dark);
  background: var(--yellow);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
}

.instagram-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

main section[id] {
  scroll-margin-top: 132px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--blue-dark);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(760px, 88vh);
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 9px
    ),
    linear-gradient(90deg, rgba(6, 26, 69, 0.92), rgba(6, 26, 69, 0.62) 48%, rgba(6, 26, 69, 0.3));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 86px;
}

.hero-graphic {
  width: min(340px, 76vw);
  margin-bottom: 22px;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 8rem);
  line-height: 0.9;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
}

.button.primary {
  color: var(--blue-dark);
  background: var(--yellow);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.location-actions .button.secondary {
  color: var(--blue);
  border-color: var(--blue);
}

.button.social {
  color: var(--blue-dark);
  background: var(--white);
  border-color: var(--line);
}

.hours-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 1px;
  background: var(--blue);
  color: var(--white);
}

.hours-band div {
  padding: 24px clamp(18px, 4vw, 46px);
  background: var(--blue);
}

.hours-band span,
.hours-band strong {
  display: block;
  color: var(--yellow);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.hours-band p {
  margin: 4px 0 0;
  font-size: 1.12rem;
  font-weight: 800;
}

.intro,
.services-section,
.gallery-section,
.location-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.about-content h2,
.location-copy h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.intro p:last-child {
  margin: 44px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.services-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(6, 26, 69, 0.05);
}

.service-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--blue-dark);
  font-weight: 900;
  border-radius: 50%;
  background: var(--yellow);
}

.service-card h3 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 1.06rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 48px;
  align-items: center;
  padding: 88px max(20px, calc((100vw - 1180px) / 2));
  background: var(--surface);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-content {
  padding-right: 20px;
}

.about-content p:not(.eyebrow) {
  color: var(--muted);
}

.gallery-section {
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
}

.youtube-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-dark);
  box-shadow: 0 8px 28px rgba(6, 26, 69, 0.08);
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: stretch;
}

address {
  margin-top: 20px;
  color: var(--muted);
  font-style: normal;
  font-size: 1.05rem;
}

address a,
.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

.mini-hours {
  margin-top: 28px;
  padding: 20px;
  border-left: 6px solid var(--yellow);
  background: var(--surface);
  border-radius: 8px;
}

.mini-hours p {
  margin: 8px 0 0;
}

.map-panel {
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

#map {
  position: relative;
  min-height: 460px;
  height: 100%;
  background: var(--surface);
}

#map.has-tile-errors::after {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 500;
  max-width: min(320px, calc(100% - 24px));
  padding: 10px 12px;
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  content: "Alcuni dettagli della mappa non sono stati caricati. Usa il link alla mappa ingrandita per aprire il percorso.";
  box-shadow: 0 8px 22px rgba(6, 26, 69, 0.12);
}

.map-fallback {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 24px;
  text-align: center;
  color: var(--blue-dark);
  background: var(--surface);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 38px max(20px, calc((100vw - 1180px) / 2));
  color: var(--white);
  background: var(--blue-dark);
}

.site-footer img {
  width: 150px;
  padding: 8px;
  background: var(--white);
  border-radius: 6px;
}

.site-footer strong {
  color: var(--yellow);
}

.site-footer p {
  margin: 10px 0 0;
}

.site-footer a {
  color: var(--white);
}

.news-article {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 88px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--blue-dark);
  text-decoration: underline;
}

.news-article h1 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.news-cover {
  margin: 34px 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.news-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-body {
  color: var(--ink);
  font-size: 1.08rem;
}

.news-body p {
  margin: 0 0 20px;
}

.site-footer .footer-instagram {
  margin-top: 8px;
  color: var(--blue-dark);
  background: var(--yellow);
  border-radius: 8px;
}

.site-footer .footer-instagram:hover,
.site-footer .footer-instagram:focus-visible {
  color: var(--yellow);
  background: var(--white);
}

@media (max-width: 980px) {
  .top-strip {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
  }

  .hours-band,
  .intro,
  .about-section,
  .location-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

  .intro p:last-child {
    margin-top: 0;
  }

  .about-content {
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  main section[id] {
    scroll-margin-top: 168px;
  }

  .main-nav {
    padding: 0 16px;
  }

  .brand img {
    width: 132px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.08) 0,
        rgba(255, 255, 255, 0.08) 1px,
        transparent 1px,
        transparent 9px
      ),
      linear-gradient(180deg, rgba(6, 26, 69, 0.5), rgba(6, 26, 69, 0.96));
  }

  .hero-content {
    width: calc(100% - 32px);
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .button,
  .hero-actions,
  .location-actions {
    width: 100%;
  }

  .service-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .intro,
  .services-section,
  .gallery-section,
  .youtube-section,
  .location-section {
    width: calc(100% - 32px);
    padding: 58px 0;
  }

  .about-section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

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

  .map-panel,
  #map,
  .map-fallback {
    min-height: 360px;
  }
}
