@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #102d49;
  --navy-deep: #0b2238;
  --gold: #a88657;
  --paper: #fcfaf6;
  --paper-light: #fffdf9;
  --text-soft: rgba(16, 45, 73, 0.72);
  --border: rgba(168, 134, 87, 0.18);
  --shadow: 0 24px 60px rgba(16, 45, 73, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper-light);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(168, 134, 87, 0.48);
  outline-offset: 4px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(252, 250, 246, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 35px rgba(16, 45, 73, 0.1);
}

.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  box-shadow: 0 10px 25px rgba(16, 45, 73, 0.14);
}

.brand-copy {
  display: grid;
}

.brand-title {
  font-family: 'Cinzel', serif;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-subtitle {
  margin-top: 7px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a {
  color: rgba(16, 45, 73, 0.78);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.desktop-nav a:hover {
  color: var(--gold);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease;
}

.header-cta {
  background: var(--navy);
  color: white;
  box-shadow: 0 14px 30px rgba(16, 45, 73, 0.2);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.service-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 128px;
  background:
    radial-gradient(circle at 92% 18%, rgba(16, 45, 73, 0.09), transparent 27%),
    radial-gradient(circle at 5% 85%, rgba(168, 134, 87, 0.12), transparent 24%),
    linear-gradient(135deg, var(--paper-light), #faf8f3);
}

.service-hero::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  right: -240px;
  bottom: -320px;
  border: 1px solid rgba(168, 134, 87, 0.2);
  border-radius: 50%;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 52px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: rgba(168, 134, 87, 0.8);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  align-items: center;
  gap: 56px;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

h1 {
  max-width: 900px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.03;
  overflow-wrap: break-word;
  hyphens: none;
}

.hero-description {
  max-width: 760px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  padding: 0 0 54px 28px;
}

.service-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(168, 134, 87, 0.22);
  border-radius: 34px;
  background: #eee8dd;
  box-shadow: 0 30px 70px rgba(16, 45, 73, 0.18);
}

.service-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(11, 34, 56, 0.28));
  pointer-events: none;
}

.service-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero-image figcaption {
  position: absolute;
  right: 15px;
  bottom: 15px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(11, 34, 56, 0.68);
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.service-hero-image figcaption a {
  color: white;
  font-weight: 700;
}

.button-gold {
  background: var(--gold);
  color: white;
  box-shadow: 0 14px 30px rgba(168, 134, 87, 0.24);
}

.button-gold:hover {
  background: #95764d;
}

.button-outline {
  border: 1px solid rgba(16, 45, 73, 0.18);
  background: rgba(255, 255, 255, 0.56);
}

.button-outline:hover {
  background: white;
}

.audience-card {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: min(310px, 78%);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.audience-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
}

.audience-card li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.5;
}

.audience-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.content-section {
  padding: 90px 0;
}

.content-section h2,
.final-cta h2 {
  max-width: 820px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.35fr 1.65fr;
  gap: 70px;
}

.intro-grid > p {
  padding-top: 8px;
}

.intro-grid > div > p {
  max-width: 820px;
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}

.included-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.included-card,
.related-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(252, 250, 246, 0.86);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.included-card {
  padding: 32px;
}

.included-card h3,
.related-card h3 {
  font-size: 22px;
  line-height: 1.3;
}

.included-card > p {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.included-card ul {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.support-card {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 58px;
  padding: 48px;
  border-radius: 34px;
  background: var(--navy);
  color: white;
  box-shadow: 0 30px 70px rgba(16, 45, 73, 0.2);
}

.support-card .eyebrow {
  color: #d1af7c;
}

.support-card p:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.75;
}

.related-section {
  padding-top: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.related-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}

.related-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.related-card:hover {
  transform: translateY(-4px);
  background: white;
  box-shadow: 0 22px 45px rgba(16, 45, 73, 0.08);
}

.final-cta {
  padding: 76px 0;
  background: linear-gradient(135deg, rgba(168, 134, 87, 0.14), rgba(255, 255, 255, 0.86));
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-footer {
  padding: 32px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-footer p {
  font-size: 14px;
  line-height: 1.6;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer strong,
.site-footer a {
  color: var(--gold);
}

.site-footer strong {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(16, 45, 73, 0.14);
    border-radius: 18px;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--navy);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav.is-open {
    position: absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 26px;
    background: rgba(252, 250, 246, 0.98);
    box-shadow: var(--shadow);
  }

  .mobile-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    background: white;
    font-weight: 800;
  }

  .hero-grid,
  .intro-grid,
  .support-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-visual {
    display: grid;
    padding: 0;
  }

  .service-hero-image {
    width: min(760px, 100%);
  }

  .audience-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(620px, calc(100% - 32px));
    margin: -46px 16px 0;
  }

  .intro-grid {
    gap: 20px;
  }

  .support-card {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 88px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .service-hero {
    padding: 48px 0 76px;
  }

  .breadcrumb {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .service-contrattualistica-locazioni-turismo h1 {
    font-size: clamp(31px, 8.2vw, 36px);
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-actions,
  .final-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .audience-card,
  .included-card,
  .support-card,
  .related-card {
    padding: 26px;
  }

  .service-hero-image {
    border-radius: 26px;
  }

  .service-hero-image figcaption {
    right: 11px;
    bottom: 11px;
  }

  .audience-card {
    width: calc(100% - 20px);
    margin: -32px 10px 0;
  }

  .content-section {
    padding: 68px 0;
  }

  .included-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .content-section h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .final-cta-inner {
    display: flex;
  }

  .site-footer p {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
