:root {
  /* Palette derivata dalla foto (blu notte istituzionale, grigi freddi, accento oro caldo) */
  --primary: #223a57;
  --secondary: #4a6078;
  --accent: #b08a63;
  --bg: #f3efe9;
  --surface: #fffdf9;
  --ink: #1d2b3b;
  --ink-soft: #59697b;
  --bg-soft: #e9e2d8;
  --border: #d3c6b8;
  --ring: #9cb3cb;
  --shadow: 0 16px 34px rgba(22, 33, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 8%, #faf6f1 0%, var(--bg) 42%, #e7dfd3 100%);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--primary);
  padding: 0.6rem 0.9rem;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  left: 1rem;
}

.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, #1a2f47 0%, var(--primary) 58%, var(--secondary) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 84% 24%, rgba(176, 138, 99, 0.18) 0%, transparent 42%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -70px 110px rgba(14, 26, 40, 0.3);
}

.py-md-6 {
  padding-top: 5.2rem !important;
  padding-bottom: 4.8rem !important;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 760px;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(18, 32, 48, 0.56), rgba(26, 44, 64, 0.38));
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 20px 42px rgba(8, 20, 33, 0.35);
  backdrop-filter: blur(3px);
}

.bridge-photo {
  position: relative;
  width: 100%;
  margin: 0 0 1.15rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(34, 58, 87, 0.2);
  box-shadow: 0 18px 36px rgba(12, 24, 36, 0.18);
  isolation: isolate;
}

.bridge-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(23, 40, 60, 0.42) 0%, rgba(23, 40, 60, 0.16) 45%, rgba(176, 138, 99, 0.24) 100%);
  z-index: 2;
  pointer-events: none;
}

.bridge-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), inset 0 -44px 74px rgba(16, 30, 45, 0.34);
}

.bridge-photo img {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 420px);
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(0.95) contrast(1.03);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  opacity: 0.95;
}

.hero-figure {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 22px 40px rgba(8, 20, 33, 0.34);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  isolation: isolate;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(18, 33, 49, 0.26) 0%, rgba(34, 58, 87, 0.08) 42%, rgba(176, 138, 99, 0.2) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -26px 52px rgba(14, 28, 43, 0.24);
  z-index: 3;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: clamp(290px, 48vw, 480px);
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.92) contrast(1.03);
  transform: scale(1.01);
  -webkit-mask-image: radial-gradient(140% 118% at 50% 48%, #000 63%, transparent 100%);
  mask-image: radial-gradient(140% 118% at 50% 48%, #000 63%, transparent 100%);
}

.cta-btn,
.cta-btn-secondary {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
  animation: ctaGlow 2.8s ease-in-out infinite;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.hero .cta-btn,
.cta-btn-secondary {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

.cta-btn::after,
.cta-btn-secondary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,0.42) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.cta-btn:hover::after,
.cta-btn:focus-visible::after,
.cta-btn-secondary:hover::after,
.cta-btn-secondary:focus-visible::after {
  left: 140%;
}

.cta-btn:hover,
.cta-btn:focus-visible,
.cta-btn-secondary:hover,
.cta-btn-secondary:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(8, 28, 49, 0.24);
  filter: saturate(1.05);
}

@keyframes ctaGlow {
  0%,
  100% { box-shadow: 0 0 0 rgba(176,138,99,0); }
  50% { box-shadow: 0 0 0 8px rgba(176,138,99,0.08); }
}

.btn-light {
  color: var(--primary);
  background: #f7f2eb;
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-light:hover,
.btn-light:focus-visible {
  color: #1a2f47;
  background: #ffffff;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2f4b6b;
  border-color: #2f4b6b;
}

.section-pad {
  padding: 2.6rem 0;
}

.section-soft {
  background: linear-gradient(180deg, #efe7dd 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
}

.card-elevated {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.area-card {
  border: 1px solid #d6c7b7;
  border-radius: 12px;
  padding: 1rem 1rem 0.95rem;
  background: #fffcf8;
  box-shadow: 0 8px 18px rgba(27, 40, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.area-card:hover,
.area-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(24, 40, 60, 0.12);
  border-color: var(--accent);
}

.area-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--primary);
  font-size: 1.08rem;
}

.area-card p,
.note,
.steps,
#profilo p,
#contatti p {
  color: var(--ink-soft);
}

.steps li {
  margin-bottom: 0.6rem;
}

.contacts li + li {
  margin-top: 0.35rem;
}

.contacts a,
.map-fallback a {
  color: var(--primary);
}

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(19, 32, 49, 0.12);
}

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

.powered-by {
  background: linear-gradient(180deg, #051514 0%, #0a2321 100%);
  border-top: 1px solid rgba(61, 231, 214, 0.25);
  border-bottom: 1px solid rgba(11, 183, 169, 0.25);
}

.powered-by .container {
  display: flex;
  justify-content: center;
}

.powered-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  color: #bff7f3;
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 231, 214, 0.24);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.powered-link img {
  height: 26px;
  width: auto;
  display: block;
}

.powered-link:hover,
.powered-link:focus-visible {
  color: #e9fffd;
  border-color: rgba(61, 231, 214, 0.5);
  box-shadow: 0 10px 24px rgba(11, 183, 169, 0.25);
}

.site-footer {
  background: #1a2d44;
  color: #dee5ee;
  border-top: 1px solid rgba(176, 138, 99, 0.28);
}

.site-footer p {
  color: #dee5ee;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .hero {
    background-position: center 18%;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .hero .lead {
    font-size: 1.02rem;
  }

  .hero-content {
    padding: 1rem;
    border-radius: 14px;
  }

  .bridge-photo {
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  .bridge-photo img {
    height: clamp(180px, 48vw, 235px);
  }

  .powered-by .container {
    padding-inline: 0.85rem;
  }

  .powered-link {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
  }

  .powered-link img {
    height: 22px;
  }

  .section-pad {
    padding: 2rem 0;
  }

  .map-frame {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-btn,
  .cta-btn-secondary {
    animation: none;
  }
}
